From e1ce6403c36262b59f35312bd69b66f61bfaff64 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 22 Mar 2011 17:07:49 +0000 Subject: output the paths that fail --- desktop/source/pagein/pagein.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'desktop') diff --git a/desktop/source/pagein/pagein.c b/desktop/source/pagein/pagein.c index 23585eb026ca..3ba12f9437a2 100755 --- a/desktop/source/pagein/pagein.c +++ b/desktop/source/pagein/pagein.c @@ -44,7 +44,7 @@ static int do_pagein (const char * filename, size_t * size) if ((result = file_image_pagein (&image)) != 0) { - fprintf (stderr, "file_image_pagein: %s\n", strerror(result)); + fprintf (stderr, "file_image_pagein %s: %s\n", filename, strerror(result)); goto cleanup_and_leave; } @@ -94,7 +94,7 @@ int pagein_execute (int argc, char **argv) case 'L': /* search path */ if (chdir (&(argv[i][2])) == -1) - fprintf (stderr, "chdir: %s\n", strerror(errno)); + fprintf (stderr, "chdir %s: %s\n", &(argv[i][2]), strerror(errno)); break; default: /* ignored */ @@ -110,7 +110,7 @@ int pagein_execute (int argc, char **argv) char path[1024]; if ((fp = fopen (&(argv[i][1]), "r")) == 0) { - fprintf (stderr, "fopen: %s\n", strerror(errno)); + fprintf (stderr, "fopen %s: %s\n", &(argv[i][1]), strerror(errno)); continue; } while (fgets (path, sizeof(path), fp) != 0) -- cgit