[PATCH v4 6/8] print_timespec: Print the kernel_timespec for timestamps

Alistair Francis alistair.francis at wdc.com
Tue Mar 10 00:43:02 UTC 2020


When printing
print_struct_timespec_data_size/print_struct_timespec_array_data_size
print the kernel_timespec_t type instead of the old 32/64-bit specific
versions.

Signed-off-by: Alistair Francis <alistair.francis at wdc.com>
---
 print_timespec_gen.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/print_timespec_gen.c b/print_timespec_gen.c
index 4df2a4f4..0c635f5f 100644
--- a/print_timespec_gen.c
+++ b/print_timespec_gen.c
@@ -37,12 +37,12 @@ typedef kernel_timespec64_t timespec_t;
 MPERS_PRINTER_DECL(bool, print_struct_timespec_data_size,
 		   const void *arg, const size_t size)
 {
-	return PRINT_TIMESPEC_DATA_SIZE(arg, size);
+	return print_timespec_data_size(arg, size);
 }
 
 MPERS_PRINTER_DECL(bool, print_struct_timespec_array_data_size,
 		   const void *arg, const unsigned int nmemb,
 		   const size_t size)
 {
-	return PRINT_TIMESPEC_ARRAY_DATA_SIZE(arg, nmemb, size);
+	return print_timespec_array_data_size(arg, nmemb, size);
 }
-- 
2.25.1



More information about the Strace-devel mailing list