[PATCH 1/3] MTD Utils. Allow hex argument in nandwrite

Steve Finney saf76 at earthlink.net
Tue May 2 12:54:46 EDT 2006


It's reasonable to allow specifying the start address in hex. If these patches 
arn't in the appropriate format, I'm sure someone will let me know :-).

sf

Signed-off-by: Steven FInney <sfinney at healthhero.com>

----------------------------------

--- util.orig/nandwrite.c       2006-05-02 07:52:41.556880288 -0700
+++ util/nandwrite.c    2006-05-02 09:37:13.843347808 -0700
@@ -183,7 +183,7 @@ void process_options (int argc, char *ar
                        pad = 1;
                        break;
                case 's':
-                       mtdoffset = atoi (optarg);
+                       mtdoffset = strtol (optarg, NULL, 0);
                        break;
                case 'b':
                        blockalign = atoi (optarg);





More information about the linux-mtd mailing list