summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiangfu Liu <xiangfu@sharism.cc>2011-12-20 13:11:50 +0800
committerXiangfu Liu <xiangfu@sharism.cc>2011-12-28 14:49:35 +0800
commit9f52f45bbadada05e01cd1c09b4d0bab66a519c9 (patch)
treea395c8bdb41679fcca6b03ce71e4a7cbfb0a1123
parentca9305ab6317ad9dfb35ab5cedc6669c3bbf67d3 (diff)
remove hardcode app name for nor-mkyaffs2image
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
-rw-r--r--utils/mkyaffs2image.c14
1 files 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)
{