Skip to content
Snippets Groups Projects
  1. May 19, 2011
    • Luca Ceresoli's avatar
      net/tftp.c: cosmetic: fix whitespace issues · c718b143
      Luca Ceresoli authored
      
      This removes the following checkpatch issues:
       - ERROR: space prohibited before that close parenthesis ')'
       - ERROR: space required after that ';' (ctx:BxV)
       - ERROR: space required after that ',' (ctx:VxV)
       - ERROR: space required after that ';' (ctx:VxV)
       - ERROR: spaces required around that '<<=' (ctx:VxV)
       - ERROR: spaces required around that '<' (ctx:VxV)
       - ERROR: spaces required around that '=' (ctx:VxV)
       - ERROR: spaces required around that '+=' (ctx:VxV)
       - ERROR: spaces required around that '=' (ctx:VxW)
       - WARNING: please, no spaces at the start of a line
       - WARNING: space prohibited between function name and open parenthesis '('
      
      Signed-off-by: default avatarLuca Ceresoli <luca.ceresoli@comelit.it>
      Cc: Wolfgang Denk <wd@denx.de>
      c718b143
    • Luca Ceresoli's avatar
      net/tftp.c: cosmetic: fix lines over 80 characters · 2f09413f
      Luca Ceresoli authored
      
      Signed-off-by: default avatarLuca Ceresoli <luca.ceresoli@comelit.it>
      Cc: Wolfgang Denk <wd@denx.de>
      2f09413f
  2. May 12, 2011
  3. Mar 21, 2010
  4. Dec 14, 2009
  5. Aug 25, 2009
  6. Aug 10, 2009
  7. Aug 08, 2009
    • Robin Getz's avatar
      minor debug cleanups in ./net · 0ebf04c6
      Robin Getz authored
      
       Minor ./net cleanups - no functional changes
        - change #ifdef DEBUG printf(); #endif to just debug()
        - changed __FUNCTION__ to __func__
        - got rid of extra whitespace between function and opening brace
        - removed unnecessary braces on if statements
      
       gcc dead code elimination should make this functionally/size equivalent
       when DEBUG is not defined. (confirmed on Blackfin, with gcc 4.3.3).
      
      Signed-off-by: default avatarRobin Getz <rgetz@blackfin.uclinux.org>
      
      Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
      0ebf04c6
  8. Mar 20, 2009
  9. Dec 05, 2008
    • Peter Tyser's avatar
      net: Fix TftpStart() ip:filename bug · 6a86bb6c
      Peter Tyser authored
      
      The TftpStart() function modifies the 'BootFile'
      string when 'BootFile' contains both an IP address
      and filename (eg 1.2.3.4:/path/file). This causes
      subsequent calls to TftpStart to incorrectly parse
      the TFTP filename and server IP address to use.
      For example:
      
      => tftp 0x100000 10.52.0.62:/home/ptyser/non_existant
      Speed: 100, half duplex
      Using eTSEC1 device
      TFTP from server 10.52.0.62; our IP address is 10.52.253.79
                       ^^^^^^^^^^ CORRECT
      Filename '/home/ptyser/non_existant'.
                ^^^^^^^^^^^^^^^^^^^^^^^^^ CORRECT
      Load address: 0x100000
      Loading: *
      TFTP error: 'File not found' (1)
      Starting again
      
      eTSEC2: No link.
      Speed: 100, half duplex
      Using eTSEC1 device
      TFTP from server 10.52.0.33; our IP address is 10.52.253.79
                       ^^^^^^^^^^ WRONG
      Filename '10.52.0.62'.
                ^^^^^^^^^^ WRONG
      Load address: 0x100000
      Loading: *
      TFTP error: 'File not found' (1)
      Starting again
      
      TftpStart() was modified to not modify the 'BootFile' string.
      
      Signed-off-by: default avatarPeter Tyser <ptyser@xes-inc.com>
      Signed-off-by: default avatarBen Warren <biggerbadderben@gmail.com>
      6a86bb6c
  10. Oct 18, 2008
  11. Sep 03, 2008
  12. Jul 09, 2008
    • Andrew Klossner's avatar
      Fix printf errors. · dc4b0b38
      Andrew Klossner authored
      
      The compiler will help find mismatches between printf formats and
      arguments if you let it.  This patch adds the necessary attributes to
      declarations in include/common.h, then begins to correct the resulting
      compiler warnings.  Some of these were bugs, e.g., "$d" instead of
      "%d" and incorrect arguments.  Others were just annoying, like
      int-long mismatches on a system where both are 32 bits.  It's worth
      fixing the annoying errors to catch the real ones.
      
      Signed-off-by: default avatarAndrew Klossner <andrew@cesa.opbu.xerox.com>
      dc4b0b38
  13. Feb 14, 2008
  14. Feb 04, 2008
  15. Nov 18, 2007
  16. Aug 31, 2007
    • Wolfgang Denk's avatar
      Fix TFTP OACK code for short packets. · 60174746
      Wolfgang Denk authored
      
      The old code had a loop limit overflow bug which caused a semi-
      infinite loop for small packets, because in "i<len-8", "i" was signed,
      but "len" was unsigned, and "len-8" became a huge number for small
      values of "len".
      
      This is a workaround which replaces broken commit 8f1bc284.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      60174746
  17. Aug 30, 2007
  18. Aug 29, 2007
  19. Aug 15, 2007
  20. Aug 14, 2007
  21. Jul 10, 2007
  22. Jul 09, 2007
  23. Jul 03, 2007
  24. Aug 14, 2006
  25. Oct 13, 2005
  26. Oct 11, 2005
  27. Sep 24, 2005
  28. Aug 25, 2005
  29. Aug 03, 2005
  30. Apr 15, 2004
  31. Mar 23, 2004
    • Wolfgang Denk's avatar
      * Patches by Thomas Viehweger, 16 Mar 2004: · 4b9206ed
      Wolfgang Denk authored
        - show PCI clock frequency on MPC8260 systems
        - add FCC_PSMR_RMII flag for HiP7 processors
        - in do_jffs2_fsload(), take load address from load_addr if not set
          explicit, update load_addr otherwise
        - replaced printf by putc/puts when no formatting is needed
          (smaller code size, faster execution)
      4b9206ed
Loading