summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2015-04-22 17:07:29 +0300
committerTobias Klauser <tklauser@distanz.ch>2015-04-22 16:13:29 +0200
commit4956bd05e1e9f6f381e6a8ff36fb80a10ba14272 (patch)
treebd7d32c4236c87669218c074e232332d0df49f16
parent76f4acca4bef1658543a97475f1c1d83accc395c (diff)
iosched: Print error cause if setting io prio failed
Add error cause message when ioprio_setpid fails. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--iosched.c2
1 files changed, 1 insertions, 1 deletions
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)