[image] Use image name rather than pointer value in all debug messages

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-05-26 18:22:07 +01:00
parent eae9a27542
commit 192cfc3cc5
7 changed files with 91 additions and 92 deletions

View File

@@ -125,8 +125,8 @@ static void cpio_parse_cmdline ( struct image *image, unsigned int *mode,
if ( ( arg = image_argument ( image, "mode=" ) ) ) {
*mode = strtoul ( arg, &end, 8 /* Octal for file mode */ );
if ( *end && ( *end != ' ' ) ) {
DBGC ( image, "CPIO %p strange \"mode=\" "
"terminator '%c'\n", image, *end );
DBGC ( image, "CPIO %s strange \"mode=\" "
"terminator '%c'\n", image->name, *end );
}
}
@@ -134,8 +134,8 @@ static void cpio_parse_cmdline ( struct image *image, unsigned int *mode,
if ( ( arg = image_argument ( image, "mkdir=" ) ) ) {
*count += strtoul ( arg, &end, 10 );
if ( *end && ( *end != ' ' ) ) {
DBGC ( image, "CPIO %p strange \"mkdir=\" "
"terminator '%c'\n", image, *end );
DBGC ( image, "CPIO %s strange \"mkdir=\" "
"terminator '%c'\n", image->name, *end );
}
}