diff options
Diffstat (limited to 'scripts/dtc/util.c')
-rw-r--r-- | scripts/dtc/util.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/dtc/util.c b/scripts/dtc/util.c index 3550f86bd6df..9953c32a0244 100644 --- a/scripts/dtc/util.c +++ b/scripts/dtc/util.c | |||
@@ -396,7 +396,7 @@ void utilfdt_print_data(const char *data, int len) | |||
396 | } while (s < data + len); | 396 | } while (s < data + len); |
397 | 397 | ||
398 | } else if ((len % 4) == 0) { | 398 | } else if ((len % 4) == 0) { |
399 | const uint32_t *cell = (const uint32_t *)data; | 399 | const fdt32_t *cell = (const fdt32_t *)data; |
400 | 400 | ||
401 | printf(" = <"); | 401 | printf(" = <"); |
402 | for (i = 0, len /= 4; i < len; i++) | 402 | for (i = 0, len /= 4; i < len; i++) |
@@ -412,15 +412,16 @@ void utilfdt_print_data(const char *data, int len) | |||
412 | } | 412 | } |
413 | } | 413 | } |
414 | 414 | ||
415 | void util_version(void) | 415 | void NORETURN util_version(void) |
416 | { | 416 | { |
417 | printf("Version: %s\n", DTC_VERSION); | 417 | printf("Version: %s\n", DTC_VERSION); |
418 | exit(0); | 418 | exit(0); |
419 | } | 419 | } |
420 | 420 | ||
421 | void util_usage(const char *errmsg, const char *synopsis, | 421 | void NORETURN util_usage(const char *errmsg, const char *synopsis, |
422 | const char *short_opts, struct option const long_opts[], | 422 | const char *short_opts, |
423 | const char * const opts_help[]) | 423 | struct option const long_opts[], |
424 | const char * const opts_help[]) | ||
424 | { | 425 | { |
425 | FILE *fp = errmsg ? stderr : stdout; | 426 | FILE *fp = errmsg ? stderr : stdout; |
426 | const char a_arg[] = "<arg>"; | 427 | const char a_arg[] = "<arg>"; |