Split a long printf format string.

This commit is contained in:
John Hood
2016-11-07 00:29:59 -05:00
parent 9df71ae5ad
commit 8ca8a54e11
+5 -5
View File
@@ -85,7 +85,7 @@ void STMClient::init( void )
string native_charset( locale_charset() ); string native_charset( locale_charset() );
fprintf( stderr, "mosh-client needs a UTF-8 native locale to run.\n\n" 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", "the character set \"%s\".\n\n",
native_ctype.str().c_str(), native_charset.c_str() ); native_ctype.str().c_str(), native_charset.c_str() );
int unused __attribute((unused)) = system( "locale" ); int unused __attribute((unused)) = system( "locale" );
@@ -213,10 +213,10 @@ void STMClient::shutdown( void )
} }
if ( still_connecting() ) { if ( still_connecting() ) {
fprintf( stderr, "\nmosh did not make a successful connection to %s:%s.\n", ip.c_str(), port.c_str() ); fprintf( stderr, "\nmosh did not make a successful connection to %s:%s.\n"
fprintf( stderr, "Please verify that UDP port %s is not firewalled and can reach the server.\n\n", port.c_str() ); "Please verify that UDP port %s is not firewalled and can reach the server.\n\n"
fputs( "(By default, mosh uses a UDP port between 60000 and 61000. The -p option\n" "(By default, mosh uses a UDP port between 60000 and 61000. The -p option\n"
"selects a specific UDP port number.)\n", stderr ); "selects a specific UDP port number.)\n", ip.c_str(), port.c_str(), port.c_str() );
} else if ( network ) { } else if ( network ) {
if ( !clean_shutdown ) { if ( !clean_shutdown ) {
fputs( "\n\nmosh did not shut down cleanly. Please note that the\n" fputs( "\n\nmosh did not shut down cleanly. Please note that the\n"