Message ID | 20230511002252.30868-3-alice@ayaya.dev (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [BlueZ,1/3] build: set _FILE_OFFSET_BITS and _TIME_BITS to 64 universally | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
tedd_an/CheckPatch | warning | WARNING:LONG_LINE: line length of 84 exceeds 80 columns #75: FILE: tools/parser/parser.h:127: + printf("%8lu.%06llu ", f->ts.tv_sec, f->ts.tv_usec); /github/workspace/src/src/13237389.patch total: 0 errors, 1 warnings, 13 lines checked NOTE: For some of the reported defects, checkpatch may be able to mechanically convert to the typical style using --fix or --fix-inplace. /github/workspace/src/src/13237389.patch has style problems, please review. NOTE: Ignored message types: COMMIT_MESSAGE COMPLEX_MACRO CONST_STRUCT FILE_PATH_CHANGES MISSING_SIGN_OFF PREFER_PACKED SPDX_LICENSE_TAG SPLIT_STRING SSCANF_TO_KSTRTO NOTE: If any of the errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. |
tedd_an/GitLint | success | Gitlint PASS |
diff --git a/tools/parser/parser.h b/tools/parser/parser.h index 5f65f1689..1eda4f290 100644 --- a/tools/parser/parser.h +++ b/tools/parser/parser.h @@ -120,11 +120,11 @@ static inline void p_indent(int level, struct frame *f) struct tm tm; time_t t = f->ts.tv_sec; localtime_r(&t, &tm); - printf("%04d-%02d-%02d %02d:%02d:%02d.%06lu ", + printf("%04d-%02d-%02d %02d:%02d:%02d.%06llu ", tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec, f->ts.tv_usec); } else - printf("%8lu.%06lu ", f->ts.tv_sec, f->ts.tv_usec); + printf("%8lu.%06llu ", f->ts.tv_sec, f->ts.tv_usec); } printf("%c ", (f->in ? '>' : '<')); parser.state = 1;
%lld is guarantted to be a 64-bit int, which we enforce via -D_TIME_BITS=64. Signed-off-by: psykose <alice@ayaya.dev> --- tools/parser/parser.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)