Commit 5d74f55d authored by Christopher Covington's avatar Christopher Covington Committed by Pavel Emelyanov

Don't say /proc in macro errors

It's possible that a procfs mounted somewhere other than /proc
is in use.
Signed-off-by: 's avatarChristopher Covington <cov@codeaurora.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 0c89d779
...@@ -137,7 +137,7 @@ extern int do_open_proc(pid_t pid, int flags, const char *fmt, ...); ...@@ -137,7 +137,7 @@ extern int do_open_proc(pid_t pid, int flags, const char *fmt, ...);
int __fd = do_open_proc(pid, flags, \ int __fd = do_open_proc(pid, flags, \
fmt, ##__VA_ARGS__); \ fmt, ##__VA_ARGS__); \
if (__fd < 0) \ if (__fd < 0) \
pr_perror("Can't open /proc/%d/" fmt, \ pr_perror("Can't open %d/" fmt " on procfs", \
pid, ##__VA_ARGS__); \ pid, ##__VA_ARGS__); \
\ \
__fd; \ __fd; \
...@@ -161,7 +161,7 @@ extern int do_open_proc(pid_t pid, int flags, const char *fmt, ...); ...@@ -161,7 +161,7 @@ extern int do_open_proc(pid_t pid, int flags, const char *fmt, ...);
__d = fdopendir(__fd); \ __d = fdopendir(__fd); \
if (__d == NULL) \ if (__d == NULL) \
pr_perror("Can't fdopendir %d " \ pr_perror("Can't fdopendir %d " \
"(/proc/%d/" fmt ")", \ "(%d/" fmt " on procfs)", \
__fd, pid, ##__VA_ARGS__); \ __fd, pid, ##__VA_ARGS__); \
} \ } \
__d; \ __d; \
...@@ -177,7 +177,7 @@ extern int do_open_proc(pid_t pid, int flags, const char *fmt, ...); ...@@ -177,7 +177,7 @@ extern int do_open_proc(pid_t pid, int flags, const char *fmt, ...);
__f = fdopen(__fd, "r"); \ __f = fdopen(__fd, "r"); \
if (__f == NULL) \ if (__f == NULL) \
pr_perror("Can't fdopen %d " \ pr_perror("Can't fdopen %d " \
"(/proc/%d/" fmt ")", \ "(%d/" fmt " on procfs)", \
__fd, pid, ##__VA_ARGS__); \ __fd, pid, ##__VA_ARGS__); \
} \ } \
__f; \ __f; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment