This patch adds verbosity to the dump command when it is run on a  system that
does not have IPR adapters attached.

Signed-off-by: Daniel Kreling <krel...@linux.vnet.ibm.com>
Reviewed-by: Gabriel Krisman Bertazi <kris...@linux.vnet.ibm.com>
---
 iprconfig.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/iprconfig.c b/iprconfig.c
index 7e99d06..95c9d3c 100644
--- a/iprconfig.c
+++ b/iprconfig.c
@@ -18285,8 +18285,10 @@ static int dump (char **args, int num_args)
        struct ipr_ioa *ioa;
        struct ipr_dev *dev;
 
-       if (!ipr_ioa_head)
+       if (!ipr_ioa_head) {
+               printf("There are no IPR adapters in the system. No dump 
collected...\n");
                return 0;
+       }
 
        printf("\n === Running 'show-config' ===\n");
        show_config(NULL,0);
-- 
1.9.1


------------------------------------------------------------------------------
_______________________________________________
Iprdd-devel mailing list
Iprdd-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iprdd-devel

Reply via email to