diff options
author | Tom Tromey <tromey@adacore.com> | 2020-12-17 13:37:20 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2020-12-17 13:47:03 -0700 |
commit | 844a65387c55e9637359a8df1a633adb15d8966e (patch) | |
tree | e0778b5fd7dd3ea5c7eba3e4a2f3a345c3335db4 /gdb/printcmd.c | |
parent | 32f47895b5859c1f34abec75478ef55f2d92b023 (diff) | |
download | gdb-844a65387c55e9637359a8df1a633adb15d8966e.zip gdb-844a65387c55e9637359a8df1a633adb15d8966e.tar.gz gdb-844a65387c55e9637359a8df1a633adb15d8966e.tar.bz2 |
Remove a use of n_spaces
While removing printfi_filtered, I found a spot that used n_spaces
where the now-ordinary "%*s" approach would do. This patch makes this
change.
Tested on x86-64 Fedora 32.
gdb/ChangeLog
2020-12-17 Tom Tromey <tromey@adacore.com>
* printcmd.c (print_variable_and_value): Don't use n_spaces.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index e95b880..de083a2 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -2258,7 +2258,7 @@ print_variable_and_value (const char *name, struct symbol *var, if (!name) name = var->print_name (); - fprintf_filtered (stream, "%s%ps = ", n_spaces (2 * indent), + fprintf_filtered (stream, "%*s%ps = ", 2 * indent, "", styled_string (variable_name_style.style (), name)); try |