Re: [PATCH v5 05/16] selftests/resctrl: Use correct type for pids

From: Reinette Chatre
Date: Fri May 31 2024 - 14:17:59 EST


Hi Ilpo,

On 5/31/24 6:11 AM, Ilpo Järvinen wrote:
A few functions receive PIDs through int arguments. PIDs variables
should be of type pid_t, not int.

Convert pid arguments from int to pid_t.

Before printing PID, match the type to %d by casting to int which is
enough for Linux (standard would allow using a longer integer type but
generalizing for that would complicate the code unnecessarily, the
selftest code does not need to be portable).

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@xxxxxxxxxxxxxxx>
---

Thank you.

Reviewed-by: Reinette Chatre <reinette.chatre@xxxxxxxxx>

Reinette