[PATCH 3/4] oprofile update: fix oprofilefs integer files base

John Levon (levon@movementarian.org)
Tue, 11 Feb 2003 11:43:56 +0000


This patch allows the oprofilefs files to take entry in any base
instead of just base 10

diff -Naur -X dontdiff linux/drivers/oprofile/oprofilefs.c linux2/drivers/oprofile/oprofilefs.c
--- linux/drivers/oprofile/oprofilefs.c 2003-02-10 19:40:25.000000000 +0000
+++ linux2/drivers/oprofile/oprofilefs.c 2003-02-09 23:46:03.000000000 +0000
@@ -114,7 +114,7 @@
return -EFAULT;

spin_lock(&oprofilefs_lock);
- *val = simple_strtoul(tmpbuf, NULL, 10);
+ *val = simple_strtoul(tmpbuf, NULL, 0);
spin_unlock(&oprofilefs_lock);
return 0;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/