Revision 47f12397
Added by Renato Botelho almost 15 years ago
etc/inc/cmd_chain.inc | ||
---|---|---|
98 | 98 |
$ignore_return_text = $cmd['ignore_return_text']; |
99 | 99 |
// Should we perform verbose debugging? |
100 | 100 |
if($this->is_debugging == true) { |
101 |
log_error(sprintf(gettext("CmdCHAIN is executing -> %s - %s"), $cmd_title, $command));
|
|
101 |
log_error(sprintf(gettext("CmdCHAIN is executing -> %1$s - %2$s"), $cmd_title, $command));
|
|
102 | 102 |
usleep(100); // give network stack time to deliver network syslog message |
103 | 103 |
} |
104 | 104 |
// Execute command |
... | ... | |
106 | 106 |
if($this->ignore_return_text == true) |
107 | 107 |
continue; |
108 | 108 |
if(intval($status) <> 0) { |
109 |
log_error(sprintf(gettext("%s failed with return code -> %s. The command was %s"), $cmd_title, $status, $command));
|
|
109 |
log_error(sprintf(gettext("%s failed with return code -> %1$s. The command was %2$s"), $cmd_title, $status, $command));
|
|
110 | 110 |
if($this->halt_on_errors == true) |
111 |
return(sprintf(gettext("%s failed with return code -> %s. The command was %s"), $cmd_title, $status, $command));
|
|
111 |
return(sprintf(gettext("%s failed with return code -> %1$s. The command was %2$s"), $cmd_title, $status, $command));
|
|
112 | 112 |
} |
113 | 113 |
} |
114 | 114 |
return; |
Also available in: Unified diff
Fix gettext calls with printf to permit change strings order