public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [RFC] Suppressing Diagnostic Output for 'fw_setenv'
@ 2008-08-30  3:32 Grant Erickson
  2008-08-30  5:51 ` Markus Klotzbücher
  2008-08-30  6:52 ` [U-Boot] [PATCH] " Grant Erickson
  0 siblings, 2 replies; 6+ messages in thread
From: Grant Erickson @ 2008-08-30  3:32 UTC (permalink / raw)
  To: u-boot

The u-boot companion command line tool 'fw_setenv' emits verbose output
during a set operation of the form:

    Unlocking flash...
    Done
    Erasing old environment...
    Done
    Writing environment to /dev/mtd4...
    Done
    Locking ...
    Done

While this is nice for debugging and troubleshooting, it is a bit verbose in
a production environment. I propose two alternatives for suppressing this
output:

1) Compile-time: Change 'printf' to 'debug' in which case the above
   diagnostics will only be output when the tool is built with 'DEBUG'
   asserted.

2) Run-time: Change the implementation such that the invocation usage of
   'fw_setenv' is:

    Usage: fw_setenv [ -q ] name [ value ... ]

I'd favor (2); however, I welcome strong opinions one way or another before
I submit a patch.

Regards,

Grant

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-09-07 19:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-30  3:32 [U-Boot] [RFC] Suppressing Diagnostic Output for 'fw_setenv' Grant Erickson
2008-08-30  5:51 ` Markus Klotzbücher
2008-08-30  6:52 ` [U-Boot] [PATCH] " Grant Erickson
2008-08-30  7:01   ` Markus Klotzbücher
2008-09-06 22:28   ` Wolfgang Denk
2008-09-07 19:41     ` Guennadi Liakhovetski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox