Skip to content

Commit 98e41fb

Browse files
andy-shevpmladek
authored andcommitted
libceph: Switch to use %ptSp
Use %ptSp instead of open coded variants to print content of struct timespec64 in human readable format. Reviewed-by: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20251113150217.3030010-4-andriy.shevchenko@linux.intel.com Signed-off-by: Petr Mladek <pmladek@suse.com>
1 parent 46ac6f5 commit 98e41fb

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

net/ceph/messenger_v2.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1564,8 +1564,7 @@ static int prepare_keepalive2(struct ceph_connection *con)
15641564
struct timespec64 now;
15651565

15661566
ktime_get_real_ts64(&now);
1567-
dout("%s con %p timestamp %lld.%09ld\n", __func__, con, now.tv_sec,
1568-
now.tv_nsec);
1567+
dout("%s con %p timestamp %ptSp\n", __func__, con, &now);
15691568

15701569
ceph_encode_timespec64(ts, &now);
15711570

@@ -2759,8 +2758,7 @@ static int process_keepalive2_ack(struct ceph_connection *con,
27592758
ceph_decode_need(&p, end, sizeof(struct ceph_timespec), bad);
27602759
ceph_decode_timespec64(&con->last_keepalive_ack, p);
27612760

2762-
dout("%s con %p timestamp %lld.%09ld\n", __func__, con,
2763-
con->last_keepalive_ack.tv_sec, con->last_keepalive_ack.tv_nsec);
2761+
dout("%s con %p timestamp %ptSp\n", __func__, con, &con->last_keepalive_ack);
27642762

27652763
return 0;
27662764

0 commit comments

Comments
 (0)