summaryrefslogtreecommitdiffstats
path: root/src/core/dummy_sanboot.c
diff options
context:
space:
mode:
authorMichael Brown2024-03-04 13:50:25 +0100
committerMichael Brown2024-03-04 13:50:25 +0100
commit75c7904482b5397c41b4a91ce266f25a8a196e13 (patch)
treef2c0385e1c2e9472f627020548a3cefda872dc7a /src/core/dummy_sanboot.c
parent[efi] Use long forms of device paths in debug messages (diff)
downloadipxe-75c7904482b5397c41b4a91ce266f25a8a196e13.tar.gz
ipxe-75c7904482b5397c41b4a91ce266f25a8a196e13.tar.xz
ipxe-75c7904482b5397c41b4a91ce266f25a8a196e13.zip
[block] Use drive number as debug message stream ID
We currently use the SAN device pointer as the debug message stream identifier. This pointer is not always available: for example, when booting from a local disk there is no underlying SAN device. Switch to using the drive number as the debug message colour stream identifier, so that all block device debug messages may be colourised consistently. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core/dummy_sanboot.c')
-rw-r--r--src/core/dummy_sanboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/dummy_sanboot.c b/src/core/dummy_sanboot.c
index e6293099..506b20c1 100644
--- a/src/core/dummy_sanboot.c
+++ b/src/core/dummy_sanboot.c
@@ -55,7 +55,7 @@ static int dummy_san_hook ( unsigned int drive, struct uri **uris,
/* Register SAN device */
if ( ( rc = register_sandev ( sandev, drive, flags ) ) != 0 ) {
- DBGC ( sandev, "SAN %#02x could not register: %s\n",
+ DBGC ( sandev->drive, "SAN %#02x could not register: %s\n",
sandev->drive, strerror ( rc ) );
goto err_register;
}
@@ -80,7 +80,7 @@ static void dummy_san_unhook ( unsigned int drive ) {
/* Find drive */
sandev = sandev_find ( drive );
if ( ! sandev ) {
- DBG ( "SAN %#02x does not exist\n", drive );
+ DBGC ( drive, "SAN %#02x does not exist\n", drive );
return;
}