>From 26f25561e1608984faac83b7df1e9d4030be1c83 Mon Sep 17 00:00:00 2001 From: Ferenc Wagner Date: Tue, 10 Nov 2009 01:16:20 +0100 Subject: [PATCH] Add some debugging output --- 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