diff options
author | Shawn Routhier <sar@isc.org> | 2010-12-03 20:27:51 +0000 |
---|---|---|
committer | Shawn Routhier <sar@isc.org> | 2010-12-03 20:27:51 +0000 |
commit | 391965129dec4c91beea436e6adf0e65277ca7db (patch) | |
tree | 34baf6dd41aaa5a6f156e111ea3729f1a871099a /dhcpctl/omshell.c | |
parent | 3004babab17a9388f603963cdf1d0577536c7c1a (diff) | |
download | isc-dhcp-391965129dec4c91beea436e6adf0e65277ca7db.tar.gz |
Restore printing of values in omshell to the style pre 21518. For
21518 we changed the print routines to always display time values
as a hex list. This had a side effect of printing all data strings
as a hex list. We shall investigate other ways of displaying time
values more usefully. [ISC-Bugs #22626]
Diffstat (limited to 'dhcpctl/omshell.c')
-rw-r--r-- | dhcpctl/omshell.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dhcpctl/omshell.c b/dhcpctl/omshell.c index c3e7ef63..4da7428e 100644 --- a/dhcpctl/omshell.c +++ b/dhcpctl/omshell.c @@ -161,9 +161,9 @@ main(int argc, char **argv) { break; case omapi_datatype_data: - print_hex_only(v->value->u.buffer.len, - v->value->u.buffer.value, - sizeof(hex_buf), hex_buf); + print_hex_or_string(v->value->u.buffer.len, + v->value->u.buffer.value, + sizeof(hex_buf), hex_buf); printf("%s\n", hex_buf); break; |