diff options
author | Vadim Kochan <vadim4j@gmail.com> | 2015-04-22 17:07:29 +0300 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-04-22 16:13:29 +0200 |
commit | 4956bd05e1e9f6f381e6a8ff36fb80a10ba14272 (patch) | |
tree | bd7d32c4236c87669218c074e232332d0df49f16 | |
parent | 76f4acca4bef1658543a97475f1c1d83accc395c (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |