From 9fb4f9b2f5bbfc49f6be6fa8c7482f906d9f8aaf Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Thu, 14 Apr 2022 21:36:28 -0500 Subject: [PATCH] Cleanup: Use macro to add program name to print string in byte_dump. --- level_3/byte_dump/c/byte_dump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/level_3/byte_dump/c/byte_dump.c b/level_3/byte_dump/c/byte_dump.c index 15c56d9..b95bb5b 100644 --- a/level_3/byte_dump/c/byte_dump.c +++ b/level_3/byte_dump/c/byte_dump.c @@ -392,7 +392,7 @@ extern "C" { flockfile(main->output.to.stream); f_print_dynamic_raw(f_string_eol_s, main->output.to.stream); - fl_print_format("%[Piped Byte Dump: (in ", main->output.to.stream, main->context.set.title); + fl_print_format("%[Piped " BYTE_DUMP_program_name_long_s ": (in ", main->output.to.stream, main->context.set.title); if (data.mode == byte_dump_mode_hexidecimal_e) { f_print_dynamic_raw(byte_dump_print_strings_hexidecimal_s, main->output.to.stream); @@ -467,7 +467,7 @@ extern "C" { flockfile(main->output.to.stream); - fl_print_format("%r%[Byte Dump of: %]%[", main->output.to.stream, f_string_eol_s, main->context.set.title, main->context.set.title, main->context.set.notable); + fl_print_format("%r%[" BYTE_DUMP_program_name_long_s " of: %]%[", main->output.to.stream, f_string_eol_s, main->context.set.title, main->context.set.title, main->context.set.notable); fl_print_format("%Q%] %[(in ", main->output.to.stream, data.argv[main->parameters.remaining.array[counter]], main->context.set.notable, main->context.set.title); if (data.mode == byte_dump_mode_hexidecimal_e) { -- 1.8.3.1