From: Kevin Day Date: Fri, 15 Apr 2022 02:36:28 +0000 (-0500) Subject: Cleanup: Use macro to add program name to print string in byte_dump. X-Git-Tag: 0.5.10~212 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=9fb4f9b2f5bbfc49f6be6fa8c7482f906d9f8aaf;p=fll Cleanup: Use macro to add program name to print string in byte_dump. --- 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) {