From 9d72cbc1e2db063166c0767b5c5a26ef04f2972a Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 10 Jun 2012 16:48:31 +0200 Subject: [PATCH] sysfs: fix printf format warnings sysfs.c:93:3: warning: format '%u' expects argument of type 'unsigned int *', but argument 3 has type 'int *' [-Wformat] sysfs.c:93:3: warning: format '%u' expects argument of type 'unsigned int *', but argument 4 has type 'int *' [-Wformat] Signed-off-by: Sami Kerola --- lib/sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sysfs.c b/lib/sysfs.c index 3b5d045c4f..312191f034 100644 --- a/lib/sysfs.c +++ b/lib/sysfs.c @@ -90,7 +90,7 @@ dev_t sysfs_devname_to_devno(const char *name, const char *parent) if (!f) return 0; - if (fscanf(f, "%u:%u", &maj, &min) == 2) + if (fscanf(f, "%d:%d", &maj, &min) == 2) dev = makedev(maj, min); fclose(f); } -- 2.47.3