Skip to content

Commit 8e464bd

Browse files
committed
RX: Use the "%Y-%m-%d" date format
Replace "%Y/%m/%d" with "%Y-%m-%d" like in most date formats.
1 parent b84bd2b commit 8e464bd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

print-rx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ rx_cache_find(netdissect_options *ndo, const struct rx_header *rxh,
799799
bp += sizeof(int32_t); \
800800
ND_PRINT(" %s", \
801801
nd_format_time(str, sizeof(str), \
802-
"%Y/%m/%d %H:%M:%S", localtime(&_t))); \
802+
"%Y-%m-%d %H:%M:%S", localtime(&_t))); \
803803
}
804804

805805
#define STOREATTROUT() { uint32_t mask, _i; \

tests/rx-v.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
3 1999-11-11 21:46:16.889677 IP (tos 0x0, ttl 64, id 57926, offset 0, flags [none], proto UDP (17), length 93)
66
131.151.32.21.7001 > 131.151.1.59.7000: rx ack seq 0 ser 432 first 2 serial 347 reason delay (65)
77
4 1999-11-11 21:46:24.151512 IP (tos 0x0, ttl 64, id 57928, offset 0, flags [none], proto UDP (17), length 108)
8-
131.151.32.21.7001 > 131.151.1.59.7000: rx data seq 1 ser 433 fs call makedir fid 536871098/1/1 "tmpdir" StoreStatus date 1999/11/11 21:46:24 group 0 mode 755 (80)
8+
131.151.32.21.7001 > 131.151.1.59.7000: rx data seq 1 ser 433 fs call makedir fid 536871098/1/1 "tmpdir" StoreStatus date 1999-11-11 21:46:24 group 0 mode 755 (80)
99
5 1999-11-11 21:46:24.245048 IP (tos 0x0, ttl 254, id 59867, offset 0, flags [DF], proto UDP (17), length 80)
1010
131.151.1.59.7000 > 131.151.32.91.7001: rx data seq 1 ser 2312 cb call callback fid 536871098/1/1 (52)
1111
6 1999-11-11 21:46:24.255513 IP (tos 0x0, ttl 128, id 42324, offset 0, flags [none], proto UDP (17), length 56)

tests/rx.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
1 1999-11-11 21:46:16.463334 IP 131.151.32.21.7001 > 131.151.1.59.7000: rx data fs call fetch-status fid 536871098/846/1049757 (44)
22
2 1999-11-11 21:46:16.483206 IP 131.151.1.59.7000 > 131.151.32.21.7001: rx data fs reply fetch-status (148)
33
3 1999-11-11 21:46:16.889677 IP 131.151.32.21.7001 > 131.151.1.59.7000: rx ack first 2 serial 347 reason delay (65)
4-
4 1999-11-11 21:46:24.151512 IP 131.151.32.21.7001 > 131.151.1.59.7000: rx data fs call makedir fid 536871098/1/1 "tmpdir" StoreStatus date 1999/11/11 21:46:24 group 0 mode 755 (80)
4+
4 1999-11-11 21:46:24.151512 IP 131.151.32.21.7001 > 131.151.1.59.7000: rx data fs call makedir fid 536871098/1/1 "tmpdir" StoreStatus date 1999-11-11 21:46:24 group 0 mode 755 (80)
55
5 1999-11-11 21:46:24.245048 IP 131.151.1.59.7000 > 131.151.32.91.7001: rx data cb call callback fid 536871098/1/1 (52)
66
6 1999-11-11 21:46:24.255513 IP 131.151.32.91.7001 > 131.151.1.59.7000: rx data (28)
77
7 1999-11-11 21:46:24.255528 IP 131.151.32.91.7001 > 131.151.1.59.7000: rx data (28)

0 commit comments

Comments
 (0)