1 /* Some commmon support functions */
3 * Rudolf Cornelissen 1/2004 */
5 #define MODULE_BIT 0x00000800
10 /*delays in multiple of microseconds*/
11 void delay(bigtime_t i
)
13 bigtime_t start
=system_time();
14 while(system_time()-start
<i
);
18 void eng_log(char *fmt
, ...)
25 sprintf (fname
, "/boot/home/" DRIVER_PREFIX
".accelerant.%d.log", accelerantIsClone
);
26 myhand
=fopen(fname
,"a+");
28 if (myhand
== NULL
) return;
31 vsprintf (buffer
, fmt
, args
);
32 fprintf(myhand
, "%s", buffer
);