From: Vadim Kochan <[email protected]> Add error cause message when ioprio_setpid fails.
Signed-off-by: Vadim Kochan <[email protected]> --- iosched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iosched.c b/iosched.c index 7417973..ff82126 100644 --- a/iosched.c +++ b/iosched.c @@ -47,7 +47,7 @@ static void ioprio_setpid(pid_t pid, int ioprio, int ioclass) int ret = ioprio_set(ioprio_who_process, pid, ioprio | ioclass << IOPRIO_CLASS_SHIFT); if (ret < 0) - panic("Failed to set io prio for pid!\n"); + panic("Failed to set io prio for pid: %s\n", strerror(errno)); } void ioprio_print(void) -- 2.3.1 -- You received this message because you are subscribed to the Google Groups "netsniff-ng" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
