diff options
Diffstat (limited to 'libbb/dump.c')
-rw-r--r-- | libbb/dump.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libbb/dump.c b/libbb/dump.c index 77d76611b..21c6c7083 100644 --- a/libbb/dump.c +++ b/libbb/dump.c | |||
@@ -563,17 +563,21 @@ static NOINLINE void display(priv_dumper_t* dumper) | |||
563 | if (dumper->eaddress | 563 | if (dumper->eaddress |
564 | && dumper->pub.address >= dumper->eaddress | 564 | && dumper->pub.address >= dumper->eaddress |
565 | ) { | 565 | ) { |
566 | #if ENABLE_XXD | ||
566 | if (dumper->pub.xxd_eofstring) { | 567 | if (dumper->pub.xxd_eofstring) { |
567 | /* xxd support: requested to not pad incomplete blocks */ | 568 | /* xxd support: requested to not pad incomplete blocks */ |
568 | fputs_stdout(dumper->pub.xxd_eofstring); | 569 | fputs_stdout(dumper->pub.xxd_eofstring); |
569 | return; | 570 | return; |
570 | } | 571 | } |
572 | #endif | ||
573 | #if ENABLE_OD | ||
571 | if (dumper->pub.od_eofstring) { | 574 | if (dumper->pub.od_eofstring) { |
572 | /* od support: requested to not pad incomplete blocks */ | 575 | /* od support: requested to not pad incomplete blocks */ |
573 | /* ... but do print final offset */ | 576 | /* ... but do print final offset */ |
574 | fputs_stdout(dumper->pub.od_eofstring); | 577 | fputs_stdout(dumper->pub.od_eofstring); |
575 | goto endfu; | 578 | goto endfu; |
576 | } | 579 | } |
580 | #endif | ||
577 | if (!(pr->flags & (F_TEXT | F_BPAD))) | 581 | if (!(pr->flags & (F_TEXT | F_BPAD))) |
578 | bpad(pr); | 582 | bpad(pr); |
579 | } | 583 | } |
@@ -637,7 +641,7 @@ static NOINLINE void display(priv_dumper_t* dumper) | |||
637 | goto skip; | 641 | goto skip; |
638 | } | 642 | } |
639 | printf(pr->fmt, value); | 643 | printf(pr->fmt, value); |
640 | skip: | 644 | IF_OD(skip:) |
641 | break; | 645 | break; |
642 | } | 646 | } |
643 | case F_P: | 647 | case F_P: |