mirror of
https://github.com/ipxe/ipxe
synced 2026-01-29 12:29:13 +03:00
[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:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user