OSDN Git Service

fec: report correct ecc location for -E
authorSami Tolvanen <samitolvanen@google.com>
Wed, 18 Nov 2015 10:13:45 +0000 (10:13 +0000)
committerSami Tolvanen <samitolvanen@google.com>
Wed, 18 Nov 2015 10:13:45 +0000 (10:13 +0000)
Since the header is now at the end, no need to take that into account
when reporting metadata location.

Change-Id: I825b5ae9d35b3ca69dead37f246568b4700298a2

verity/fec/main.cpp

index 6fa38f9..07b3666 100644 (file)
@@ -156,7 +156,7 @@ static int get_start(int mode, const char *filename)
             FATAL("no ecc data\n");
         }
 
-        printf("%" PRIu64 "\n", data.start - FEC_BLOCKSIZE);
+        printf("%" PRIu64 "\n", data.start);
     } else {
         fec_verity_metadata data;