mirror of
https://github.com/SDL-Hercules-390/hyperion.git
synced 2026-07-30 12:29:16 +02:00
TRIM diag8cmd echo audit messages
This commit is contained in:
@@ -652,7 +652,7 @@ int HelpCommand( CMDFUNC_ARGS_PROTO )
|
||||
/*-------------------------------------------------------------------*/
|
||||
/* Helper function to echo a command to the console (internal) */
|
||||
/*-------------------------------------------------------------------*/
|
||||
static void EchoHercCmdLine( const char* cmd )
|
||||
static void EchoHercCmdLine( char* cmd )
|
||||
{
|
||||
BYTE panel = WRMSG_NORMAL; // (default)
|
||||
|
||||
@@ -667,7 +667,7 @@ static void EchoHercCmdLine( const char* cmd )
|
||||
panel = WRMSG_PANEL; // (prevent DIAG8 capturing)
|
||||
}
|
||||
|
||||
PWRMSG( panel, HHC01603, "I", cmd ); // "%s"
|
||||
PWRMSG( panel, HHC01603, "I", RTRIM( cmd )); // "%s"
|
||||
}
|
||||
|
||||
void* FindSCRCTL( TID tid );// (external helper function; see script.c)
|
||||
|
||||
@@ -1150,7 +1150,7 @@ int freeresp; /* Flag to free resp */
|
||||
|
||||
// "%s guest issued panel command: %s"
|
||||
if (sysblk.diag8opt & DIAG8CMD_ECHO)
|
||||
PWRMSG( WRMSG_PANEL, HHC01950, "I", "Starting", cmd );
|
||||
PWRMSG( WRMSG_PANEL, HHC01950, "I", "Starting", RTRIM( cmd ));
|
||||
|
||||
/* Issue the command and capture the response */
|
||||
if (cmdflags & CMDFLAGS_RESPONSE)
|
||||
@@ -1169,7 +1169,7 @@ int freeresp; /* Flag to free resp */
|
||||
|
||||
// "%s guest issued panel command: %s"
|
||||
if (sysblk.diag8opt & DIAG8CMD_ECHO)
|
||||
PWRMSG( WRMSG_PANEL, HHC01950, "I", "Completed", cmd );
|
||||
PWRMSG( WRMSG_PANEL, HHC01950, "I", "Completed", RTRIM( cmd ));
|
||||
}
|
||||
#endif // defined( FEATURE_HERCULES_DIAGCALLS )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user