From 9f52f45bbadada05e01cd1c09b4d0bab66a519c9 Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Tue, 20 Dec 2011 13:11:50 +0800 Subject: remove hardcode app name for nor-mkyaffs2image Signed-off-by: Xiangfu Liu --- utils/mkyaffs2image.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/utils/mkyaffs2image.c b/utils/mkyaffs2image.c index 2e62708..c8d19ee 100644 --- a/utils/mkyaffs2image.c +++ b/utils/mkyaffs2image.c @@ -558,21 +558,21 @@ int main(int argc, char *argv[]) { struct stat stats; - printf("mkyaffs2image: image building tool for YAFFS2 built "__DATE__"\n"); + printf("%s: image building tool for YAFFS2 built "__DATE__"\n", argv[0]); if(argc < 3) { - printf("usage: mkyaffs2image dir image_file [convert]\n"); + printf("usage: %s dir image_file [convert]\n", argv[0]); printf(" dir the directory tree to be converted\n"); printf(" image_file the output file to hold the image\n"); - printf(" 'convert' produce a big-endian image from a little-endian machine\n"); + printf(" 'convert' produce a big-endian image from a little-endian machine\n"); exit(1); } - if ((argc == 4) && (!strncmp(argv[3], "convert", strlen("convert")))) - { - convert_endian = 1; - } + if ((argc == 4) && (!strncmp(argv[3], "convert", strlen("convert")))) + { + convert_endian = 1; + } if(stat(argv[1],&stats) < 0) { -- cgit v1.2.3