From 4b9206ed51a3e3dc06dca2a3930a24e4f0025f3d Mon Sep 17 00:00:00 2001 From: wdenk Date: Tue, 23 Mar 2004 22:14:11 +0000 Subject: * 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) --- common/cmd_jffs2.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'common/cmd_jffs2.c') diff --git a/common/cmd_jffs2.c b/common/cmd_jffs2.c index 6ebd46f..c4f5a97 100644 --- a/common/cmd_jffs2.c +++ b/common/cmd_jffs2.c @@ -98,7 +98,7 @@ do_jffs2_fsload(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) char *fsname; char *filename = "uImage"; - ulong offset = CFG_LOAD_ADDR; + ulong offset = load_addr; int size; struct part_info *part; @@ -107,6 +107,7 @@ do_jffs2_fsload(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) } if (argc == 3) { offset = simple_strtoul(argv[1], NULL, 16); + load_addr = offset; filename = argv[2]; } @@ -135,7 +136,7 @@ do_jffs2_fsload(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) return !(size > 0); } - printf("Active partition not valid\n"); + puts ("Active partition not valid\n"); return 0; } @@ -164,7 +165,7 @@ do_jffs2_ls(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) return (ret == 1); } - printf("Active partition not valid\n"); + puts ("Active partition not valid\n"); return 0; } @@ -192,7 +193,7 @@ do_jffs2_fsinfo(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) return (ret == 1); } - printf("Active partition not valid\n"); + puts ("Active partition not valid\n"); return 0; } @@ -206,7 +207,7 @@ do_jffs2_chpart(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) if (argc >= 2) { tmp_part = simple_strtoul(argv[1], NULL, 16); }else{ - printf("Need partition number in argument list\n"); + puts ("Need partition number in argument list\n"); return 0; } -- cgit v1.1