mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-30 13:57:50 +00:00
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]
This commit is contained in:
5
RELNOTES
5
RELNOTES
@@ -144,6 +144,11 @@ work on other platforms. Please report any problems and suggested fixes to
|
|||||||
a setsockopt() call. The signal is already being ignored as part
|
a setsockopt() call. The signal is already being ignored as part
|
||||||
of the ISC library. [ISC-Bugs #22269]
|
of the ISC library. [ISC-Bugs #22269]
|
||||||
|
|
||||||
|
- 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]
|
||||||
|
|
||||||
Changes since 4.2.0b2
|
Changes since 4.2.0b2
|
||||||
|
|
||||||
|
@@ -161,7 +161,7 @@ main(int argc, char **argv) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case omapi_datatype_data:
|
case omapi_datatype_data:
|
||||||
print_hex_only(v->value->u.buffer.len,
|
print_hex_or_string(v->value->u.buffer.len,
|
||||||
v->value->u.buffer.value,
|
v->value->u.buffer.value,
|
||||||
sizeof(hex_buf), hex_buf);
|
sizeof(hex_buf), hex_buf);
|
||||||
printf("%s\n", hex_buf);
|
printf("%s\n", hex_buf);
|
||||||
|
@@ -2304,6 +2304,7 @@ void dump_packet PROTO ((struct packet *));
|
|||||||
void hash_dump PROTO ((struct hash_table *));
|
void hash_dump PROTO ((struct hash_table *));
|
||||||
char *print_hex PROTO ((unsigned, const u_int8_t *, unsigned, unsigned));
|
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_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_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_2(len, data, limit) print_hex(len, data, limit, 1)
|
||||||
#define print_hex_3(len, data, limit) print_hex(len, data, limit, 2)
|
#define print_hex_3(len, data, limit) print_hex(len, data, limit, 2)
|
||||||
|
Reference in New Issue
Block a user