diff options
| author | wdenk <wdenk> | 2004-03-23 22:14:11 +0000 | 
|---|---|---|
| committer | wdenk <wdenk> | 2004-03-23 22:14:11 +0000 | 
| commit | 4b9206ed51a3e3dc06dca2a3930a24e4f0025f3d (patch) | |
| tree | 2eb73ab74a66356c52d588bb06f803af55897e18 /common/cmd_autoscript.c | |
| parent | 109c0e3ad32428dd65ed89f882faf59e30132494 (diff) | |
| download | olio-uboot-2014.01-4b9206ed51a3e3dc06dca2a3930a24e4f0025f3d.tar.xz olio-uboot-2014.01-4b9206ed51a3e3dc06dca2a3930a24e4f0025f3d.zip  | |
* Patches by Thomas Viehweger, 16 Mar 2004:
  - show PCI clock frequency on MPC8260 systems
  - add FCC_PSMR_RMII flag for HiP7 processors
  - in do_jffs2_fsload(), take load address from load_addr if not set
    explicit, update load_addr otherwise
  - replaced printf by putc/puts when no formatting is needed
    (smaller code size, faster execution)
Diffstat (limited to 'common/cmd_autoscript.c')
| -rw-r--r-- | common/cmd_autoscript.c | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/common/cmd_autoscript.c b/common/cmd_autoscript.c index 4894dabd3..2d1f43143 100644 --- a/common/cmd_autoscript.c +++ b/common/cmd_autoscript.c @@ -68,7 +68,7 @@ autoscript (ulong addr)  	memmove (hdr, (char *)addr, sizeof(image_header_t));  	if (ntohl(hdr->ih_magic) != IH_MAGIC) { -		printf ("Bad magic number\n"); +		puts ("Bad magic number\n");  		return 1;  	} @@ -77,7 +77,7 @@ autoscript (ulong addr)  	len = sizeof (image_header_t);  	data = (ulong)hdr;  	if (crc32(0, (char *)data, len) != crc) { -		printf ("Bad header crc\n"); +		puts ("Bad header crc\n");  		return 1;  	} @@ -86,13 +86,13 @@ autoscript (ulong addr)  	if (verify) {  		if (crc32(0, (char *)data, len) != ntohl(hdr->ih_dcrc)) { -			printf ("Bad data crc\n"); +			puts ("Bad data crc\n");  			return 1;  		}  	}  	if (hdr->ih_type != IH_TYPE_SCRIPT) { -		printf ("Bad image type\n"); +		puts ("Bad image type\n");  		return 1;  	} @@ -100,7 +100,7 @@ autoscript (ulong addr)  	len_ptr = (ulong *)data;  	if ((len = ntohl(*len_ptr)) == 0) { -		printf ("Empty Script\n"); +		puts ("Empty Script\n");  		return 1;  	}  |