patch-2.1.124 linux/arch/ppc/kernel/find_name.c

Next file: linux/arch/ppc/kernel/head.S
Previous file: linux/arch/ppc/kernel/chrp_setup.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.123/linux/arch/ppc/kernel/find_name.c linux/arch/ppc/kernel/find_name.c
@@ -16,7 +16,7 @@
 	if ( argc < 2 )
 	{
 		fprintf(stderr, "Usage: %s <address>\n", argv[0]);
-		exit(-1);
+		return -1;
 	}
 
 	for ( i = 1 ; argv[i] ; i++ )
@@ -41,7 +41,7 @@
 			strcpy( last, s);
 		}
 		
-		printf( "%s", last);
+		printf( "%s%s", last, s );
 	}		
 	fclose(f);
 	return 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov