Messages in this thread | | | Date | Sat, 19 Mar 2022 15:09:02 +0800 | Subject | Re: [PATCH linux-next v2] selftests: net: change fprintf format specifiers | From | Guo Zhengkui <> |
| |
On 2022/3/19 0:33, Jakub Kicinski wrote: > On Fri, 18 Mar 2022 15:50:13 +0800 Guo Zhengkui wrote: >> `cur64`, `start64` and `ts_delta` are int64_t. Change >> format specifiers in fprintf from '%lu' to '%ld'. >> >> It has been tested with gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 >> on x86_64. > > No, not like that. Please read up on printing int64_t.
Sorry for misunderstanding. I wrongly thought that it's just for 64-bit.
So I should use `PRId64`.
Zhengkui
| |