summaryrefslogtreecommitdiff
path: root/drivers/ata/pata_arasan_cf.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-06-17 18:37:12 +0300
committerTejun Heo <tj@kernel.org>2016-06-17 19:07:11 +0300
commitf3f99d37e668f080d167cf11f3b2e986df2d315d (patch)
tree14c51889a2588d3681f5e0f1db341fea8de2c2ce /drivers/ata/pata_arasan_cf.c
parent8dbcad020f2e7f38125ab1e73771a2bcb6564e8d (diff)
downloadlinux-f3f99d37e668f080d167cf11f3b2e986df2d315d.tar.xz
ata: fix "ering" sysfs time printing
The sysfs file for the libata error handling has multiple issues in the way it prints time stamps: * it prints a 9-digit nanosecond value using a %06lu format string, which drops some leading zeroes * it converts a 64-bit jiffes value to a timespec using jiffies_to_timespec(), which takes a 'long' argument, so the result is wrong after a jiffies overflow (49 days). * we try to avoid using timespec because that generally overflows in 2038, although this particular usage is ok. This replaces the jiffies_to_timespec call with an open-coded implementation that gets it right. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/pata_arasan_cf.c')
0 files changed, 0 insertions, 0 deletions