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

From: John Levon (levon@movementarian.org)
Date: Tue Feb 11 2003 - 06:43:56 EST


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/



This archive was generated by hypermail 2b29 : Sat Feb 15 2003 - 22:00:33 EST