Skip to contentSkip to conversation

ipr: fix debug macro call in ipr_reset_restore_cfg_space()

PATCH In review Kleber S. Souza 2 participants 2 messages Apr 20, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ipr: fix debug macro call in ipr_reset_restore_cfg_space()

The key functions of the ipr driver call two macros defined in 'ipr.h', 'ENTER' and 'LEAVE', upon entering and leaving the functions, in order to print debug messages when the driver is loaded with the option 'debug=1'. Before returning, ipr_reset_restore_cfg_space() calls 'ENTER' where it should call 'LEAVE'. This patch calls the right macro before returning from the function.

---
 drivers/scsi/ipr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/ipr.c +0 -0
index c09d775..23f4af2 100644
@@ -6522,7 +6522,7 @@ static int ipr_reset_restore_cfg_space(struct

ipr_cmnd *ipr_cmd)

                }
        }

- ENTER;

+       LEAVE;
        return IPR_RC_JOB_CONTINUE;

}

--

Signature · 2 lines
Kleber S. Souza
IBM Linux Technology Center
#1 lore raw

Acked by: Brian King <[email protected]>

Quoted 31 lines · Kleber S. Souza

The key functions of the ipr driver call two macros defined in 'ipr.h', 'ENTER' and 'LEAVE', upon entering and leaving the functions, in order to print debug messages when the driver is loaded with the option 'debug=1'. Before returning, ipr_reset_restore_cfg_space() calls 'ENTER' where it should call 'LEAVE'. This patch calls the right macro before returning from the function.

---
 drivers/scsi/ipr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/ipr.c +1 -2
index c09d775..23f4af2 100644
@@ -6522,7 +6522,7 @@ static int ipr_reset_restore_cfg_space(struct
 ipr_cmnd *ipr_cmd)
                }
        }
 
-       ENTER;
+       LEAVE;
        return IPR_RC_JOB_CONTINUE;
 }
 
--
Signature · 3 lines
Brian King
Linux on Power Virtualization
IBM Linux Technology Center