[PATCH] Add some debugging output

From: Ferenc Wagner
Date: Mon Nov 09 2009 - 19:16:20 EST


---
config_parser.c | 2 ++
suspend.c | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/config_parser.c b/config_parser.c
index d017ccd..91cc4fc 100644
--- a/config_parser.c
+++ b/config_parser.c
@@ -66,6 +66,8 @@ int parse_line(char *str, struct config_par *parv)
if (sscanf(str, fmt, parv[i].ptr) <= 0)
error = -EINVAL;
}
+ if (!error)
+ fprintf (stderr, "Parsed %s=%s\n", parv[i].name, str);
break;
}
}
diff --git a/suspend.c b/suspend.c
index 51cab6f..5248dba 100644
--- a/suspend.c
+++ b/suspend.c
@@ -2421,7 +2421,7 @@ int main(int argc, char *argv[])

ret = 0;
if (stat(resume_dev_name, &stat_buf)) {
- suspend_error("Could not stat the resume device file.");
+ suspend_error("Could not stat the resume device file '%s'.", resume_dev_name);
ret = ENODEV;
goto Umount;
}
--
1.5.6.5


--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
filename=0003-Add-debugging-around-syscalls-and-ioctls.patch