[Vortex] [patch] vortex-simple-client.c - use newlines for all prints

Sam Roberts sroberts at uniserve.com
Tue Nov 7 05:46:40 CET 2006


Some use them, some don't, and at least on my shell when the last line
of output doesn't have a newline the shell eats it.

Thanks,
Sam

-------------- next part --------------
Index: vortex-simple-client.c
===================================================================
--- vortex-simple-client.c	(revision 2375)
+++ vortex-simple-client.c	(working copy)
@@ -15,10 +15,10 @@
 
 
 	// creates a new connection against localhost:44000
-	g_print ("connecting to localhost:44000...");
+	g_print ("connecting to localhost:44000...\n");
 	connection = vortex_connection_new ("localhost", "44000", NULL, NULL);
 	if (!vortex_connection_is_ok (connection, FALSE)) {
-		g_print ("Unable to connect remote server, error was: %s",
+		g_print ("Unable to connect remote server, error was: %s\n",
 			 vortex_connection_get_message (connection));
 		goto end;
 	}
@@ -35,7 +35,7 @@
 				      // no async channel creation
 				      NULL, NULL);
 	if (channel == NULL) {
-		g_print ("Unable to create the channel..");
+		g_print ("Unable to create the channel..\n");
 		goto end;
 	}
 
@@ -59,7 +59,7 @@
 		vortex_channel_close (channel, NULL);
 		goto end;
 	}
-	g_print ("my reply have arrived: (size: %d):\n%s", 
+	g_print ("my reply have arrived: (size: %d):\n%s\n", 
 		 vortex_frame_get_payload_size (frame), 
 		 vortex_frame_get_payload (frame));
 


More information about the Vortex mailing list