Re: [U-Boot] [PATCH 3/4] mkenvimage: Print program basename instead of whole path in usage()

2011-12-21 Thread Wolfgang Denk
Dear KRONSTORFER Horst, In message <024fe3275ef7814d9b07390f28c0832c63a24...@vie196nt.frequentis.frq> you wrote: > > > > + /* Parse program basename */ > > > + prg = strrchr(argv[0], '/'); > > > + prg = (prg) ? prg + 1 : argv[0]; > > > > Any reason for not using basename() here? > > i'm just us

Re: [U-Boot] [PATCH 3/4] mkenvimage: Print program basename instead of whole path in usage()

2011-12-20 Thread Wolfgang Denk
Dear Horst Kronstorfer, In message <1323082526-2125-3-git-send-email-hkron...@frequentis.com> you wrote: > Signed-off-by: Horst Kronstorfer > --- > tools/mkenvimage.c | 13 + > 1 files changed, 9 insertions(+), 4 deletions(-) > > diff --git a/tools/mkenvimage.c b/tools/mkenvimage.

[U-Boot] [PATCH 3/4] mkenvimage: Print program basename instead of whole path in usage()

2011-12-05 Thread Horst Kronstorfer
Signed-off-by: Horst Kronstorfer --- tools/mkenvimage.c | 13 + 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/tools/mkenvimage.c b/tools/mkenvimage.c index 22d1b88..3e7f967 100644 --- a/tools/mkenvimage.c +++ b/tools/mkenvimage.c @@ -79,6 +79,11 @@ int main(int argc