Whamcloud - gitweb
Fix a couple long long objid parsings, not the read fix yet, though.
authoradilger <adilger>
Fri, 6 Sep 2002 22:08:50 +0000 (22:08 +0000)
committeradilger <adilger>
Fri, 6 Sep 2002 22:08:50 +0000 (22:08 +0000)
lustre/utils/obd.c

index 2346ae8..8cfa1d1 100644 (file)
@@ -824,7 +824,7 @@ int jt_obd_create(int argc, char **argv)
                 }
 
                 if (be_verbose(verbose, &next_time, i, &next_count, count))
-                        printf("%s: #%d is object id %Ld\n", cmdname(argv[0]),
+                        printf("%s: #%d is object id 0x%Lx\n", cmdname(argv[0]),
                                i, (long long)data.ioc_obdo1.o_id);
         }
         return rc;
@@ -898,7 +898,7 @@ int jt_obd_getattr(int argc, char **argv)
                 return CMD_HELP;
 
         IOCINIT(data);
-        data.ioc_obdo1.o_id = strtoul(argv[1], &end, 0);
+        data.ioc_obdo1.o_id = strtoull(argv[1], &end, 0);
         if (*end) {
                 fprintf(stderr, "error: %s: invalid objid '%s'\n",
                         cmdname(argv[0]), argv[1]);
@@ -1044,7 +1044,7 @@ int jt_obd_test_brw(int argc, char **argv)
         }
         if (argc >= 6) {
                 if (argv[5][0] == 't')
-                        objid = strtoul(argv[5] + 1, &end, 0) + thread;
+                        objid = strtoull(argv[5] + 1, &end, 0) + thread;
                 else
                         objid = strtoull(argv[5], &end, 0);
                 if (*end) {