summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/cbfstool/cbfstool.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/cbfstool/cbfstool.c b/util/cbfstool/cbfstool.c
index b8abb515bf..939221e66d 100644
--- a/util/cbfstool/cbfstool.c
+++ b/util/cbfstool/cbfstool.c
@@ -232,9 +232,10 @@ static int cbfs_locate(int argc, char **argv)
uint32_t filesize = getfilesize(file);
const char *filename = argv[4];
int align = strtoul(argv[5], NULL, 0);
+ uint32_t location = cbfs_find_location(romname, filesize, filename, align);
- printf("%x\n", cbfs_find_location(romname, filesize, filename, align));
- return 0;
+ printf("%x\n", location);
+ return location == 0 ? 1 : 0;
}
static int cbfs_print(int argc, char **argv)