From fe7475b4d0cb4158d662fa5f5f39bc7f07e6c10d Mon Sep 17 00:00:00 2001 From: hu-weihua Date: Wed, 17 Aug 2016 05:26:24 -0400 Subject: [PATCH] modify depending on comments --- xCAT-probe/subcmds/code_template | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/xCAT-probe/subcmds/code_template b/xCAT-probe/subcmds/code_template index e087ba8af..a681e9649 100755 --- a/xCAT-probe/subcmds/code_template +++ b/xCAT-probe/subcmds/code_template @@ -108,15 +108,17 @@ sub do_main_job { # A simple example of how to dump %summaryoutput has been written in function #------------------------------------- sub summary_all_jobs_output { + my $rst = 0; #DO SUMMARY DEPENDING ON YOUR SUB_COMMAND NEED - print "\n======================do summary=====================\n"; + probe_utils->send_msg("$output", "d", "======================do summary====================="); foreach my $sn (keys %summaryoutput) { - print "[$sn]\n"; + probe_utils->send_msg("$output", "d", "[$sn]"); foreach my $log (@{ $summaryoutput{$sn} }) { - print "\t$log\n"; + probe_utils->send_msg("$output", "d", "$log"); } } + return $rst; } #-------------------------------------