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@15115 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
5d29bfa5fa
commit
ddb22696d9
@ -1,6 +1,6 @@
|
||||
/* Some commmon support functions */
|
||||
/* Mark Watson 2/2000
|
||||
* Rudolf Cornelissen 11/2003 */
|
||||
* Rudolf Cornelissen 11/2005 */
|
||||
|
||||
#define MODULE_BIT 0x00000800
|
||||
|
||||
@ -22,7 +22,11 @@ void mga_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;
|
||||
|
Loading…
Reference in New Issue
Block a user