[PATCH] config/udev: fix "removing GPU device" format string mistake
Aaron Plattner
aplattner at nvidia.com
Wed Oct 17 15:13:45 PDT 2012
udev.c: In function 'device_removed':
udev.c:270:9: warning: format '%d' expects argument of type 'int', but argument 3 has type 'const char *' [-Wformat]
Signed-off-by: Aaron Plattner <aplattner at nvidia.com>
---
There are plenty of other format warnings, but this one was particularly
egregious.
config/udev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config/udev.c b/config/udev.c
index 454838f..de89241 100644
--- a/config/udev.c
+++ b/config/udev.c
@@ -267,7 +267,7 @@ device_removed(struct udev_device *device)
if (strncmp(sysname,"card", 4) != 0)
return;
- ErrorF("removing GPU device %s %d\n", syspath, path);
+ ErrorF("removing GPU device %s %s\n", syspath, path);
if (!path)
return;
--
1.7.12
More information about the xorg-devel
mailing list