diff options
| author | Alex Maftei <[email protected]> | 2023-06-15 08:34:04 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2023-06-15 22:07:23 +0000 |
| commit | 76a4c8b82938bc5020b67663db41f451684bf327 (patch) | |
| tree | 4de7c5f8e0e22308729b1d77773927c3b6e920c7 /drivers/net/ethernet/intel/igc | |
| parent | net: ethernet: stmicro: stmmac: fix possible memory leak in __stmmac_open (diff) | |
| download | kernel-76a4c8b82938bc5020b67663db41f451684bf327.tar.gz kernel-76a4c8b82938bc5020b67663db41f451684bf327.zip | |
selftests/ptp: Fix timestamp printf format for PTP_SYS_OFFSET
Previously, timestamps were printed using "%lld.%u" which is incorrect
for nanosecond values lower than 100,000,000 as they're fractional
digits, therefore leading zeros are meaningful.
This patch changes the format strings to "%lld.%09u" in order to add
leading zeros to the nanosecond value.
Fixes: 568ebc5985f5 ("ptp: add the PTP_SYS_OFFSET ioctl to the testptp program")
Fixes: 4ec54f95736f ("ptp: Fix compiler warnings in the testptp utility")
Fixes: 6ab0e475f1f3 ("Documentation: fix misc. warnings")
Signed-off-by: Alex Maftei <[email protected]>
Acked-by: Richard Cochran <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc')
0 files changed, 0 insertions, 0 deletions
