aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2022-03-18 12:40:23 +0000
committerMichael Brown <mcb30@ipxe.org>2022-08-08 15:59:55 +0100
commitd8014b1801f1dee59d7d1450a62b31f844e2bd5c (patch)
tree7b5acf82a449d4a1762121f1ef639af568cee7eb /src
parent319caeaa7b1505d8f2c2e90b51ba7202c3981cc6 (diff)
downloadipxe-d8014b1801f1dee59d7d1450a62b31f844e2bd5c.tar.gz
[intelxl] Include admin command response data buffer in debug output
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/net/intelxl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/drivers/net/intelxl.c b/src/drivers/net/intelxl.c
index 7885fbce8..5de45913f 100644
--- a/src/drivers/net/intelxl.c
+++ b/src/drivers/net/intelxl.c
@@ -409,7 +409,7 @@ int intelxl_admin_command ( struct intelxl_nic *intelxl ) {
/* Post command descriptor */
DBGC2_HDA ( intelxl, virt_to_phys ( cmd ), cmd, sizeof ( *cmd ) );
- if ( cmd->flags & cpu_to_le16 ( INTELXL_ADMIN_FL_BUF ) ) {
+ if ( cmd->flags & cpu_to_le16 ( INTELXL_ADMIN_FL_RD ) ) {
DBGC2_HDA ( intelxl, virt_to_phys ( buf ), buf,
le16_to_cpu ( cmd->len ) );
}
@@ -428,6 +428,10 @@ int intelxl_admin_command ( struct intelxl_nic *intelxl ) {
intelxl, index );
DBGC2_HDA ( intelxl, virt_to_phys ( cmd ), cmd,
sizeof ( *cmd ) );
+ if ( cmd->flags & cpu_to_le16 ( INTELXL_ADMIN_FL_BUF ) ) {
+ DBGC2_HDA ( intelxl, virt_to_phys ( buf ), buf,
+ le16_to_cpu ( cmd->len ) );
+ }
/* Check for cookie mismatch */
if ( cmd->cookie != cookie ) {