Split a long printf format string.
This commit is contained in:
@@ -85,7 +85,7 @@ void STMClient::init( void )
|
||||
string native_charset( locale_charset() );
|
||||
|
||||
fprintf( stderr, "mosh-client needs a UTF-8 native locale to run.\n\n"
|
||||
"Unfortunately, the client's environment (%s) specifies\n"
|
||||
"Unfortunately, the client's environment (%s) specifies\n"
|
||||
"the character set \"%s\".\n\n",
|
||||
native_ctype.str().c_str(), native_charset.c_str() );
|
||||
int unused __attribute((unused)) = system( "locale" );
|
||||
@@ -213,10 +213,10 @@ void STMClient::shutdown( void )
|
||||
}
|
||||
|
||||
if ( still_connecting() ) {
|
||||
fprintf( stderr, "\nmosh did not make a successful connection to %s:%s.\n", ip.c_str(), port.c_str() );
|
||||
fprintf( stderr, "Please verify that UDP port %s is not firewalled and can reach the server.\n\n", port.c_str() );
|
||||
fputs( "(By default, mosh uses a UDP port between 60000 and 61000. The -p option\n"
|
||||
"selects a specific UDP port number.)\n", stderr );
|
||||
fprintf( stderr, "\nmosh did not make a successful connection to %s:%s.\n"
|
||||
"Please verify that UDP port %s is not firewalled and can reach the server.\n\n"
|
||||
"(By default, mosh uses a UDP port between 60000 and 61000. The -p option\n"
|
||||
"selects a specific UDP port number.)\n", ip.c_str(), port.c_str(), port.c_str() );
|
||||
} else if ( network ) {
|
||||
if ( !clean_shutdown ) {
|
||||
fputs( "\n\nmosh did not shut down cleanly. Please note that the\n"
|
||||
|
||||
Reference in New Issue
Block a user