TRIM diag8cmd echo audit messages

This commit is contained in:
Fish (David B. Trout)
2018-08-28 07:59:58 -07:00
parent 13bd401911
commit a62b61ba14
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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)
+2 -2
View File
@@ -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 )