From 4c57b734eb715d7eceedd4970bfbc42dd03c6a94 Mon Sep 17 00:00:00 2001 From: xiangfu Date: Tue, 26 May 2009 17:22:44 +0000 Subject: [PATCH] change some output info --- flash-tool/ingenic_cfg.c | 15 ++++++++------- flash-tool/main.c | 8 +++----- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/flash-tool/ingenic_cfg.c b/flash-tool/ingenic_cfg.c index 4840dd2..8f98186 100644 --- a/flash-tool/ingenic_cfg.c +++ b/flash-tool/ingenic_cfg.c @@ -120,14 +120,15 @@ int check_dump_cfg(struct hand *hand) total_size / 0x100000, 2 * (hand->fw_args.bank_num + 1), 16 * (2 - hand->fw_args.bus_width)); - /* printf("\n Nand page size %d, ECC offset %d, ", - hand->nand_ps,hand->nand_eccpos); + printf("\n Nand page size %d, " + "ECC offset %d, " + "bad block ID %d, " + "use %d plane mode\n", + hand->nand_ps, + hand->nand_eccpos, + hand->nand_bbpage, + hand->nand_plane); - printf("bad block ID %d, ",hand->nand_bbpage); - - printf("use %d plane mode",hand->nand_plane); */ - - printf("\n"); return 1; } diff --git a/flash-tool/main.c b/flash-tool/main.c index 666013d..b83092b 100644 --- a/flash-tool/main.c +++ b/flash-tool/main.c @@ -54,8 +54,9 @@ static struct option opts[] = { int main(int argc, char **argv) { - printf("inflash - (C) 2009\n" - "This program is Free Software and has ABSOLUTELY NO WARRANTY\n\n"); + printf(" inflash - (C) 2009" + "\n Ingenic Tools Software!" + "\n This program is Free Software and has ABSOLUTELY NO WARRANTY\n"); int command = 0; char *cptr; @@ -86,9 +87,6 @@ int main(int argc, char **argv) } } - printf("\n Welcome!" - "\n Ingenic Tools Software!"); - if ((getuid()) || (getgid())) { fprintf(stderr, "Error - you must be root to run '%s'\n", argv[0]); return EXIT_FAILURE;