1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
diff -ru usbirboy-0.2.1-orig/usbirboykmod/usbirboy.c usbirboy-0.2.1/usbirboykmod/usbirboy.c
--- usbirboy-0.2.1-orig/usbirboykmod/usbirboy.c 2006-07-06 11:47:10.353523729 +0200
+++ usbirboy-0.2.1/usbirboykmod/usbirboy.c 2006-07-06 11:49:45.352506621 +0200
@@ -65,6 +65,8 @@
#define __END_DEBUG }
+#define usbirboy_info(format, arg...) printk(KERN_INFO "%s: " format "\n" , \
+ DRIVER_NAME , ## arg)
/* Strait from lirc.h adopted ioctl definitions */
/* Lets hope they dont change those*/
@@ -636,7 +638,7 @@
/* let the user know what node this device is now attached to */
- info("USB-IR-Boy device attached to usbirboy with minor %d\n", irdev->minor);
+ usbirboy_info("USB-IR-Boy device attached to usbirboy with minor %d", irdev->minor);
__DEBUG
printk("<----- %s \n", __FUNCTION__);
__END_DEBUG
@@ -725,7 +727,7 @@
usbirboy_cleanup (usbirdev);
up (&disconnect_sem);
- info( "USB-IR-Boy device disconnected. Minor: %d\n",minor);
+ usbirboy_info( "USB-IR-Boy device disconnected. Minor: %d",minor);
__DEBUG
printk("<----- %s \n", __FUNCTION__);
__END_DEBUG
@@ -754,7 +756,7 @@
return -1;
}
- info( DRIVER_DESC ":" DRIVER_VERSION);
+ usbirboy_info( DRIVER_DESC ":" DRIVER_VERSION);
__DEBUG
printk("<----- %s \n", __FUNCTION__);
@@ -772,7 +774,7 @@
__END_DEBUG
usb_deregister (&usbirboy_driver);
- info( "usbirboy_driver deregistered...\n");
+ usbirboy_info( "driver deregistered...");
__DEBUG
printk("<----- %s \n", __FUNCTION__);
__END_DEBUG
|