FIXED: - compiler warning from printf format string
authorChristian Taedcke <hacking@taedcke.com>
Thu, 27 Jan 2011 17:45:48 +0100
changeset 654 fc9af616633d
parent 653 e2d0c5251fbd
child 655 ea1ddcc77acf
FIXED: - compiler warning from printf format string
drivers/can_virtual/can_virtual.c
--- a/drivers/can_virtual/can_virtual.c	Fri Feb 19 15:52:59 2010 +0100
+++ b/drivers/can_virtual/can_virtual.c	Thu Jan 27 17:45:48 2011 +0100
@@ -55,7 +55,7 @@
 {
   int i;
   
-  printf("%x->[ ", (CANPipe*)fd0 - &canpipes[0]); 
+  printf("%lx->[ ", (CANPipe*)fd0 - &canpipes[0]); 
   for(i=0; i < MAX_NB_CAN_PIPES; i++)
   {
   	if(canpipes[i].used && &canpipes[i] != (CANPipe*)fd0)
@@ -94,7 +94,7 @@
 
 UNS8 canChangeBaudRate_driver( CAN_HANDLE fd0, char* baud)
 {
-    printf("%x-> changing to baud rate %s[%d]\n", (CANPipe*)fd0 - &canpipes[0],baud,TranslateBaudRate(baud)); 
+    printf("%lx-> changing to baud rate %s[%d]\n", (CANPipe*)fd0 - &canpipes[0],baud,TranslateBaudRate(baud)); 
     return 0;
 }