svn commit: trunk/uClibc/utils

aldot at uclibc.org aldot at uclibc.org
Wed Mar 26 19:42:15 UTC 2008


Author: aldot
Date: 2008-03-26 12:42:15 -0700 (Wed, 26 Mar 2008)
New Revision: 21507

Log:
- trim trailing whitespace. No object-code changes.


Modified:
   trunk/uClibc/utils/readelf.c


Changeset:
Modified: trunk/uClibc/utils/readelf.c
===================================================================
--- trunk/uClibc/utils/readelf.c	2008-03-26 19:40:39 UTC (rev 21506)
+++ trunk/uClibc/utils/readelf.c	2008-03-26 19:42:15 UTC (rev 21507)
@@ -74,7 +74,7 @@
 	return NULL;
 }
 
-/* Returns value if return_val==1, ptr otherwise */ 
+/* Returns value if return_val==1, ptr otherwise */
 static void * elf_find_dynamic( int64_t const key, ElfW(Dyn) *dynp,
 	ElfW(Ehdr) *ehdr, int return_val)
 {
@@ -93,10 +93,10 @@
 
 static int check_elf_header(ElfW(Ehdr) *const ehdr)
 {
-	if (! ehdr || strncmp((void *)ehdr, ELFMAG, SELFMAG) != 0 ||  
+	if (! ehdr || strncmp((void *)ehdr, ELFMAG, SELFMAG) != 0 ||
 			(ehdr->e_ident[EI_CLASS] != ELFCLASS32 &&
 			 ehdr->e_ident[EI_CLASS] != ELFCLASS64) ||
-			ehdr->e_ident[EI_VERSION] != EV_CURRENT) 
+			ehdr->e_ident[EI_VERSION] != EV_CURRENT)
 	{
 		return 1;
 	}
@@ -196,7 +196,7 @@
 		case EM_CYGNUS_FR30:
 		case EM_FR30:		tmp="Fujitsu FR30"; break;
 		case EM_CYGNUS_FRV:
-		case EM_PJ_OLD:		
+		case EM_PJ_OLD:
 		case EM_PJ:			tmp="picoJava"; break;
 		case EM_MMA:		tmp="Fujitsu MMA Multimedia Accelerator"; break;
 		case EM_PCP:		tmp="Siemens PCP"; break;
@@ -247,7 +247,7 @@
 		case EM_PDSP:		tmp="Sony DSP Processor"; break;
 		default:			tmp="unknown";
 	}
-	printf( "Machine:\t%s\n", tmp);	
+	printf( "Machine:\t%s\n", tmp);
 
 	switch (ehdr->e_ident[EI_CLASS]) {
 		case ELFCLASSNONE: tmp = "Invalid class";  break;
@@ -266,7 +266,7 @@
 	printf( "Data:\t\t%s\n", tmp);
 
 	printf( "Version:\t%d %s\n", ehdr->e_ident[EI_VERSION],
-			(ehdr->e_ident[EI_VERSION]==EV_CURRENT)? 
+			(ehdr->e_ident[EI_VERSION]==EV_CURRENT)?
 			"(current)" : "(unknown: %lx)");
 
 	switch (ehdr->e_ident[EI_OSABI]) {
@@ -302,7 +302,7 @@
 		}
 	}
 }
-    
+
 static void describe_elf_interpreter(ElfW(Ehdr)* ehdr)
 {
 	ElfW(Phdr) *phdr;
@@ -340,7 +340,7 @@
 		goto foo;
 
 	/* mmap the file to make reading stuff from it effortless */
-	ehdr = (ElfW(Ehdr) *)mmap(0, statbuf.st_size, 
+	ehdr = (ElfW(Ehdr) *)mmap(0, statbuf.st_size,
 			PROT_READ|PROT_WRITE, MAP_PRIVATE, fileno(thefile), 0);
 
 foo:




More information about the uClibc-cvs mailing list