From ac1a3e56771bf96d350933824e2c7ec91e008c4f Mon Sep 17 00:00:00 2001 From: Sims24 Date: Wed, 30 Sep 2015 17:27:32 +0200 Subject: [PATCH] Update globalstatus.pm protect in sprintf --- storage/ibm/TS3100/mode/globalstatus.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/ibm/TS3100/mode/globalstatus.pm b/storage/ibm/TS3100/mode/globalstatus.pm index 4ddf6fd21..a59855519 100644 --- a/storage/ibm/TS3100/mode/globalstatus.pm +++ b/storage/ibm/TS3100/mode/globalstatus.pm @@ -96,7 +96,7 @@ sub run { $self->{output}->output_add(severity => $self->get_severity(value => $result->{$oid_ibm3100StatusGlobalStatus}), short_msg => sprintf("Overall global status is '%s'.", ${$states{$result->{$oid_ibm3100StatusGlobalStatus}}}[0])); - $self->{output}->output_add(long_msg => sprintf("Error state: %s Error code: %i", $result->{$oid_ibm3100FaultDesc}, $result->{$oid_ibm3100FaultError})); + $self->{output}->output_add(long_msg => sprintf("Error state: '%s' Error code: '%i'", $result->{$oid_ibm3100FaultDesc}, $result->{$oid_ibm3100FaultError})); $self->{output}->display(); $self->{output}->exit();