]> Git Repo - u-boot.git/blobdiff - cmd/universe.c
global: Convert simple_strtoul() with hex to hextoul()
[u-boot.git] / cmd / universe.c
index 5ff47dde4fbed9686c90e24b18a9eb9eec145e29..fb3a32d4d5a722ff646d7081e5c8ef680fc9b4fc 100644 (file)
@@ -307,17 +307,17 @@ int do_universe(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
        if (argc > 1)
                cmd = argv[1][0];
        if (argc > 2)
-               addr1 = simple_strtoul(argv[2], NULL, 16);
+               addr1 = hextoul(argv[2], NULL);
        if (argc > 3)
-               addr2 = simple_strtoul(argv[3], NULL, 16);
+               addr2 = hextoul(argv[3], NULL);
        if (argc > 4)
-               size = simple_strtoul(argv[4], NULL, 16);
+               size = hextoul(argv[4], NULL);
        if (argc > 5)
-               vam = simple_strtoul(argv[5], NULL, 16);
+               vam = hextoul(argv[5], NULL);
        if (argc > 6)
-               pms = simple_strtoul(argv[6], NULL, 16);
+               pms = hextoul(argv[6], NULL);
        if (argc > 7)
-               vdw = simple_strtoul(argv[7], NULL, 16);
+               vdw = hextoul(argv[7], NULL);
 
        switch (cmd) {
        case 'i':               /* init */
This page took 0.025685 seconds and 4 git commands to generate.