Error message cleanups.
authorMichael Brown <mcb30@etherboot.org>
Thu, 2 Aug 2007 19:27:50 +0000 (20:27 +0100)
committerMichael Brown <mcb30@etherboot.org>
Thu, 2 Aug 2007 19:27:50 +0000 (20:27 +0100)
src/hci/commands/image_cmd.c
src/usr/autoboot.c

index 1551318..44689dd 100644 (file)
@@ -167,7 +167,8 @@ static int imgfetch_core_exec ( struct image_type *image_type,
                return -EINVAL;
        }
        if ( ( rc = imgfetch ( image, filename, image_register ) ) != 0 ) {
                return -EINVAL;
        }
        if ( ( rc = imgfetch ( image, filename, image_register ) ) != 0 ) {
-               printf ( "Could not fetch %s: %s\n", name, strerror ( rc ) );
+               printf ( "Could not fetch %s: %s\n",
+                        filename, strerror ( rc ) );
                image_put ( image );
                return rc;
        }
                image_put ( image );
                return rc;
        }
index b5f4e9b..2afe596 100644 (file)
@@ -62,7 +62,7 @@ static int boot_filename ( const char *filename ) {
        }
        if ( ( rc = imgfetch ( image, filename,
                               register_and_autoexec_image ) ) != 0 ) {
        }
        if ( ( rc = imgfetch ( image, filename,
                               register_and_autoexec_image ) ) != 0 ) {
-               printf ( "Could not retrieve %s: %s\n",
+               printf ( "Could not boot %s: %s\n",
                         filename, strerror ( rc ) );
                image_put ( image );
                return rc;
                         filename, strerror ( rc ) );
                image_put ( image );
                return rc;