Skip to content

Commit 5113ada

Browse files
Revise log format for consistency
Update the pr_info log message in ai_one_work_func and ai_two_work_func to improve the clarity and ensure consistent logging format across functions. Co-authored-by: Cheng-Yang Chou <[email protected]>
1 parent 6945998 commit 5113ada

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ static void ai_one_work_func(struct work_struct *w)
222222
tv_end = ktime_get();
223223

224224
nsecs = (s64) ktime_to_ns(ktime_sub(tv_end, tv_start));
225-
pr_info("kxo: [CPU#%d] doing %s for %llu usec\n", cpu, __func__,
225+
pr_info("kxo: [CPU#%d] %s completed in %llu usec\n", cpu, __func__,
226226
(unsigned long long) nsecs >> 10);
227227
put_cpu();
228228
}
@@ -256,7 +256,7 @@ static void ai_two_work_func(struct work_struct *w)
256256
tv_end = ktime_get();
257257

258258
nsecs = (s64) ktime_to_ns(ktime_sub(tv_end, tv_start));
259-
pr_info("kxo: [CPU#%d] end doing %s for %llu usec\n", cpu, __func__,
259+
pr_info("kxo: [CPU#%d] %s completed in %llu usec\n", cpu, __func__,
260260
(unsigned long long) nsecs >> 10);
261261
put_cpu();
262262
}

0 commit comments

Comments
 (0)