Skip to content

Commit ed40532

Browse files
andy-shevpmladek
authored andcommitted
s390/dasd: Switch to use %ptSp
Use %ptSp instead of open coded variants to print content of struct timespec64 in human readable format. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Stefan Haberland <sth@linux.ibm.com> Link: https://patch.msgid.link/20251113150217.3030010-19-andriy.shevchenko@linux.intel.com Signed-off-by: Petr Mladek <pmladek@suse.com>
1 parent 4e7c8ab commit ed40532

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/s390/block/dasd.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -974,8 +974,7 @@ static void dasd_stats_array(struct seq_file *m, unsigned int *array)
974974
static void dasd_stats_seq_print(struct seq_file *m,
975975
struct dasd_profile_info *data)
976976
{
977-
seq_printf(m, "start_time %lld.%09ld\n",
978-
(s64)data->starttod.tv_sec, data->starttod.tv_nsec);
977+
seq_printf(m, "start_time %ptSp\n", &data->starttod);
979978
seq_printf(m, "total_requests %u\n", data->dasd_io_reqs);
980979
seq_printf(m, "total_sectors %u\n", data->dasd_io_sects);
981980
seq_printf(m, "total_pav %u\n", data->dasd_io_alias);

0 commit comments

Comments
 (0)