技術英語 > In oom_kill_process(), the variable 'points' is unsigned int. Print it [as such].


In oom_kill_process(), the variable 'points' is unsigned int. Print it as such.

- pr_err("%s: Kill process %d (%s) score %d or sacrifice child\n",
+ pr_err("%s: Kill process %d (%s) score %u or sacrifice child\n",
message, task_pid_nr(p), p->comm, points);

unsigend intの書式指定子を%dとしていたのを%uに修正している。

上の例文では「points変数は unsigned int だから、そのように(意訳:その書式で)Printせよ」。

as such は that way に置き換えても同じだろうか?