diff options
| author | 2024-03-19 16:08:35 +1100 | |
|---|---|---|
| committer | 2024-03-19 16:08:35 +1100 | |
| commit | 0524b105c18691e5dbddee3aef4afad08f277fb9 (patch) | |
| tree | 5d10dbc399688f648b63ce3fc1cc93b0ce4c4277 /src/emu/debug/debughlp.cpp | |
| parent | c545ac9eb6407348fe28f2cc3f70d07dcece915c (diff) | |
emu/debug/debugcmd.cpp: Added support for lowercase hex to printf/logerror. [Patrick Mackinlay]
Also simplified implementation by better leveraging util/strformat.h.
This is from pull request #12124, to get some testing for the
fundamental change before freeze.
Diffstat (limited to 'src/emu/debug/debughlp.cpp')
| -rw-r--r-- | src/emu/debug/debughlp.cpp | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/emu/debug/debughlp.cpp b/src/emu/debug/debughlp.cpp index ee455bd84f8..5d71d81e0ba 100644 --- a/src/emu/debug/debughlp.cpp +++ b/src/emu/debug/debughlp.cpp @@ -359,11 +359,14 @@ const help_item f_static_help_list[] = "The printf command performs a C-style printf to the debugger console. Only a very limited set of " "formatting options are available:\n" "\n" - " %[0][<n>]d -- prints <item> as a decimal value with optional digit count and zero-fill\n" - " %[0][<n>]x -- prints <item> as a hexadecimal value with optional digit count and zero-fill\n" + " %c -- 8-bit character\n" + " %[0][<n>]d -- decimal number with optional digit count and zero-fill\n" + " %[0][<n>]o -- octal number with optional digit count and zero-fill\n" + " %[0][<n>]x -- hexadecimal number with optional digit count and zero-fill (lowercase digits)\n" + " %[0][<n>]X -- hexadecimal number with optional digit count and zero-fill (uppercase digits)\n" "\n" - "All remaining formatting options are ignored. Use %% together to output a % character. Multiple " - "lines can be printed by embedding a \\n in the text.\n" + "All remaining formatting options are ignored. Use %% to output a % character. Multiple lines can be " + "printed by embedding a \\n in the text.\n" "\n" "Examples:\n" "\n" @@ -381,11 +384,14 @@ const help_item f_static_help_list[] = "The logerror command performs a C-style printf to the error log. Only a very limited set of " "formatting options are available:\n" "\n" - " %[0][<n>]d -- logs <item> as a decimal value with optional digit count and zero-fill\n" - " %[0][<n>]x -- logs <item> as a hexadecimal value with optional digit count and zero-fill\n" + " %c -- 8-bit character\n" + " %[0][<n>]d -- decimal number with optional digit count and zero-fill\n" + " %[0][<n>]o -- octal number with optional digit count and zero-fill\n" + " %[0][<n>]x -- hexadecimal number with optional digit count and zero-fill (lowercase digits)\n" + " %[0][<n>]X -- hexadecimal number with optional digit count and zero-fill (uppercase digits)\n" "\n" - "All remaining formatting options are ignored. Use %% together to output a % character. Multiple " - "lines can be printed by embedding a \\n in the text.\n" + "All remaining formatting options are ignored. Use %% to output a % character. Multiple lines can be " + "printed by embedding a \\n in the text.\n" "\n" "Examples:\n" "\n" |
