Skip to content

Commit

Permalink
TRIM diag8cmd echo audit messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Fish-Git committed Aug 28, 2018
1 parent 13bd401 commit a62b61b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmdtab.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 )

Expand Down

0 comments on commit a62b61b

Please sign in to comment.