global: Convert simple_strtoul() with decimal to dectoul()
[platform/kernel/u-boot.git] / common / bedbug.c
index 6e1fb58..c76fa48 100644 (file)
@@ -1007,7 +1007,7 @@ long read_number (char *txt)
        if (txt[0] == '0' && (txt[1] == 'x' || txt[1] == 'X'))  /* hex */
                val = hextoul(&txt[2], NULL);
        else                                            /* decimal */
-               val = simple_strtoul (txt, NULL, 10);
+               val = dectoul(txt, NULL);
 
        if (is_neg)
                val = -val;