[PATCH v5 07/12] print_timespec: Print the kernel_old_timespec for timestamps

Alistair Francis alistair.francis at wdc.com
Thu Mar 12 17:55:18 UTC 2020


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

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

diff --git a/print_timespec.c b/print_timespec.c
index 4df2a4f4..259ae68b 100644
--- a/print_timespec.c
+++ b/print_timespec.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_old_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_old_timespec_array_data_size(arg, nmemb, size);
 }
-- 
2.25.1



More information about the Strace-devel mailing list