[CRIU] [PATCHv2] pie/piegen: add space at pr_perror()

Dmitry Safonov dsafonov at virtuozzo.com
Wed Feb 17 03:23:58 PST 2016


As no user does it explicitly, do this in define, it shall look nicer
than:
parasite_blob: Error (pie/piegen/main.c:121): Can't open file file.oNo such file or directory

Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
v2: line break -> space

 criu/pie/piegen/piegen.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/pie/piegen/piegen.h b/criu/pie/piegen/piegen.h
index 8488c0a..99597ab 100644
--- a/criu/pie/piegen/piegen.h
+++ b/criu/pie/piegen/piegen.h
@@ -30,6 +30,6 @@ extern int handle_elf_ppc64(void *mem, size_t size);
 #define pr_debug(fmt, ...)	printf("%s: "fmt, opts.stream_name, ##__VA_ARGS__)
 
 #define pr_err(fmt, ...)	fprintf(stderr, "%s: Error (%s:%d): "fmt, opts.stream_name, __FILE__, __LINE__, ##__VA_ARGS__)
-#define pr_perror(fmt, ...)	fprintf(stderr, "%s: Error (%s:%d): "fmt "%m\n", opts.stream_name, __FILE__, __LINE__, ##__VA_ARGS__)
+#define pr_perror(fmt, ...)	fprintf(stderr, "%s: Error (%s:%d): "fmt ": %m\n", opts.stream_name, __FILE__, __LINE__, ##__VA_ARGS__)
 
 #endif /* __ELFTIL_H__ */
-- 
2.7.1



More information about the CRIU mailing list