Add function for printing command usage
authorPiotr Dymacz <pepe2k@gmail.com>
Sun, 14 Aug 2016 14:02:42 +0000 (16:02 +0200)
committerPiotr Dymacz <pepe2k@gmail.com>
Sun, 14 Aug 2016 14:02:42 +0000 (16:02 +0200)
commit6b9accff8bf5a075d541d22273441c1132003a63
tree6b2745a54628f9f755d77d163f5ccab2b37979f0
parent2444ec011163807949aec28103718540082d8b53
Add function for printing command usage

DRY... move duplicated code into common function. This saves
around 900 bytes in uncompressed version and around 200 bytes
in compressed one.

Also, cleanup little bit coding style in command.{c,h}
12 files changed:
u-boot/common/cmd_boot.c
u-boot/common/cmd_bootm.c
u-boot/common/cmd_custom.c
u-boot/common/cmd_flash.c
u-boot/common/cmd_itest.c
u-boot/common/cmd_mem.c
u-boot/common/cmd_net.c
u-boot/common/cmd_nvedit.c
u-boot/common/command.c
u-boot/common/hush.c
u-boot/common/main.c
u-boot/include/command.h