Skip to content
Snippets Groups Projects
  1. Jul 24, 2013
  2. Mar 11, 2013
    • Andreas Bießmann's avatar
      display_options:print_buffer: align ASCII print · efd7c114
      Andreas Bießmann authored
      
      This patch adds whitespace to the printed hex numbers to have an aligned ASCII
      printout at the end of the line.
      
      This changes for example the md output from:
      
      ---8<---
      OMAP3 Tricorder # md.l $loadaddr 5
      82000000: 30200109 20a4028c 90010000 08a00000    .. 0... ........
      82000010: 01010000    ....
      --->8---
      
      to
      
      ---8<---
      OMAP3 Tricorder # md.l $loadaddr 5
      82000000: 30200109 20a4028c 90010000 08a00000    .. 0... ........
      82000010: 01010000                               ....
      --->8---
      
      The cost of this is about 72 byte .text increase (tested with at91 build).
      
      Signed-off-by: default avatarAndreas Bießmann <andreas.devel@googlemail.com>
      efd7c114
  3. Mar 01, 2013
  4. Jul 28, 2011
  5. Sep 13, 2010
  6. Aug 08, 2010
    • Mike Frysinger's avatar
      print_buffer: optimize & shrink · 64419e47
      Mike Frysinger authored
      
      Applying a little creative format string allows us to shrink the initial
      data read & display loop by only calling printf once.  Re-using the local
      data buffer to generate the string we want to display then allows us to
      output everything with just one printf call instead of multiple calls to
      the putc function.
      
      The local stack buffer needs increasing by 1 byte, but the resulting code
      shrink and speed up is worth it I think.
      
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      64419e47
  7. May 17, 2010
  8. May 05, 2010
  9. Apr 13, 2010
  10. Jul 09, 2008
  11. Jun 11, 2008
  12. Feb 20, 2007
  13. Jul 01, 2003
  14. Sep 08, 2002
  15. Aug 27, 2002
  16. Dec 28, 2000
  17. Dec 14, 2000
  18. Nov 12, 2000
Loading