]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] oprofile: fix oprofilefs integer files base
authorJohn Levon <levon@movementarian.org>
Tue, 11 Feb 2003 04:25:51 +0000 (20:25 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 11 Feb 2003 04:25:51 +0000 (20:25 -0800)
This patch allows the oprofilefs files to take entry in any base
instead of just base 10

drivers/oprofile/oprofilefs.c

index b08b252831c7ab4bbc06b32e7aab71530ad59531..869a3f5273e2ef2171e1899a126b0cca9e656573 100644 (file)
@@ -114,7 +114,7 @@ int oprofilefs_ulong_from_user(unsigned long * val, char const * buf, size_t cou
                return -EFAULT;
 
        spin_lock(&oprofilefs_lock);
-       *val = simple_strtoul(tmpbuf, NULL, 10);
+       *val = simple_strtoul(tmpbuf, NULL, 0);
        spin_unlock(&oprofilefs_lock);
        return 0;
 }