From 21ef619efffadcbc0b260d31e6a4ba95d3151f4e Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Thu, 24 Nov 2005 15:17:21 +0000 Subject: [PATCH] modified logging file name. Now the name incorporates the same name the kerneldriver exports for a device so logging multiple active graphicscards becomes possible on one system. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15118 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/accelerants/nvidia/engine/nv_support.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/add-ons/accelerants/nvidia/engine/nv_support.c b/src/add-ons/accelerants/nvidia/engine/nv_support.c index 4c0990d731..19991f2963 100644 --- a/src/add-ons/accelerants/nvidia/engine/nv_support.c +++ b/src/add-ons/accelerants/nvidia/engine/nv_support.c @@ -1,6 +1,6 @@ /* Some commmon support functions */ /* Mark Watson 2/2000; - * Rudolf Cornelissen 1/2004 */ + * Rudolf Cornelissen 1/2004-11/2005 */ #define MODULE_BIT 0x00000800 @@ -22,7 +22,11 @@ void nv_log(char *fmt, ...) FILE *myhand; va_list args; - sprintf (fname, "/boot/home/" DRIVER_PREFIX ".accelerant.%d.log", accelerantIsClone); + /* determine the logfile name: + * we need split-up logging per card and instance of the accelerant */ + sprintf (fname, "/boot/home/" DRIVER_PREFIX ".accelerant." DEVICE_FORMAT ".%d.log", + si->vendor_id, si->device_id, si->bus, si->device, si->function, + accelerantIsClone); myhand=fopen(fname,"a+"); if (myhand == NULL) return;