Commit 1dc1a36b authored by Shawn Routhier's avatar Shawn Routhier
Browse files

Restore printing of values in omshell to the style pre 21585. For

21585 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]
parent 3b339234
......@@ -53,6 +53,12 @@ work on other platforms. Please report any problems and suggested fixes to
This fixes a bug where 'dhclient' would have shared library dependencies
on '/usr/lib'. [ISC-Bugs #21967]
- Restore printing of values in omshell to the style pre 21585. For
21585 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]
Changes since 4.1.2rc1
! Handle a relay forward message with an unspecified address in the
......@@ -2271,7 +2277,6 @@ work on other platforms. Please report any problems and suggested fixes to
- Fix some bugs and omissions in omshell.
Changes since 3.0 Release Candidate 5
- Fix a bug in omapi_object_dereference that prevented objects in
......
......@@ -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;
......
......@@ -2124,6 +2124,7 @@ void dump_packet PROTO ((struct packet *));
void hash_dump PROTO ((struct hash_table *));
char *print_hex PROTO ((unsigned, const u_int8_t *, unsigned, unsigned));
void print_hex_only PROTO ((unsigned, const u_int8_t *, unsigned, char *));
void print_hex_or_string PROTO ((unsigned, const u_int8_t *, unsigned, char *));
#define print_hex_1(len, data, limit) print_hex(len, data, limit, 0)
#define print_hex_2(len, data, limit) print_hex(len, data, limit, 1)
#define print_hex_3(len, data, limit) print_hex(len, data, limit, 2)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment