mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-11 19:17:22 +00:00
Remove hardcoded CR('\r') from 'lib/ipmi_sol.c'.
This commit is contained in:
parent
e0ed4351d0
commit
9660e90ad2
@ -1226,15 +1226,15 @@ static void
|
|||||||
printSolEscapeSequences(struct ipmi_intf * intf)
|
printSolEscapeSequences(struct ipmi_intf * intf)
|
||||||
{
|
{
|
||||||
printf(
|
printf(
|
||||||
"%c?\r\n\
|
"%c?\n\
|
||||||
Supported escape sequences:\r\n\
|
Supported escape sequences:\n\
|
||||||
%c. - terminate connection\r\n\
|
%c. - terminate connection\n\
|
||||||
%c^Z - suspend ipmitool\r\n\
|
%c^Z - suspend ipmitool\n\
|
||||||
%c^X - suspend ipmitool, but don't restore tty on restart\r\n\
|
%c^X - suspend ipmitool, but don't restore tty on restart\n\
|
||||||
%cB - send break\r\n\
|
%cB - send break\n\
|
||||||
%c? - this message\r\n\
|
%c? - this message\n\
|
||||||
%c%c - send the escape character by typing it twice\r\n\
|
%c%c - send the escape character by typing it twice\n\
|
||||||
(Note that escapes are only recognized immediately after newline.)\r\n",
|
(Note that escapes are only recognized immediately after newline.)\n",
|
||||||
intf->session->sol_escape_char,
|
intf->session->sol_escape_char,
|
||||||
intf->session->sol_escape_char,
|
intf->session->sol_escape_char,
|
||||||
intf->session->sol_escape_char,
|
intf->session->sol_escape_char,
|
||||||
@ -1373,25 +1373,25 @@ processSolUserInput(
|
|||||||
*/
|
*/
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
case '.':
|
case '.':
|
||||||
printf("%c. [terminated ipmitool]\r\n",
|
printf("%c. [terminated ipmitool]\n",
|
||||||
intf->session->sol_escape_char);
|
intf->session->sol_escape_char);
|
||||||
retval = 1;
|
retval = 1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'Z' - 64:
|
case 'Z' - 64:
|
||||||
printf("%c^Z [suspend ipmitool]\r\n",
|
printf("%c^Z [suspend ipmitool]\n",
|
||||||
intf->session->sol_escape_char);
|
intf->session->sol_escape_char);
|
||||||
suspendSelf(1); /* Restore tty back to raw */
|
suspendSelf(1); /* Restore tty back to raw */
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
case 'X' - 64:
|
case 'X' - 64:
|
||||||
printf("%c^Z [suspend ipmitool]\r\n",
|
printf("%c^Z [suspend ipmitool]\n",
|
||||||
intf->session->sol_escape_char);
|
intf->session->sol_escape_char);
|
||||||
suspendSelf(0); /* Don't restore to raw mode */
|
suspendSelf(0); /* Don't restore to raw mode */
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
case 'B':
|
case 'B':
|
||||||
printf("%cB [send break]\r\n",
|
printf("%cB [send break]\n",
|
||||||
intf->session->sol_escape_char);
|
intf->session->sol_escape_char);
|
||||||
sendBreak(intf);
|
sendBreak(intf);
|
||||||
continue;
|
continue;
|
||||||
@ -1829,7 +1829,7 @@ ipmi_sol_activate(struct ipmi_intf * intf, int looptest, int interval)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("[SOL Session operational. Use %c? for help]\r\n",
|
printf("[SOL Session operational. Use %c? for help]\n",
|
||||||
intf->session->sol_escape_char);
|
intf->session->sol_escape_char);
|
||||||
|
|
||||||
if(looptest == 1)
|
if(looptest == 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user