]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[intelxl] Include admin command response data buffer in debug output
authorMichael Brown <mcb30@ipxe.org>
Fri, 18 Mar 2022 12:40:23 +0000 (12:40 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 8 Aug 2022 14:59:55 +0000 (15:59 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/intelxl.c

index 7885fbce85c3c2c89265f480d091f66c377ec3e9..5de45913f36f6e4f576df99830cb2909761ab2c5 100644 (file)
@@ -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 ) {