Changeset 27167


Ignore:
Timestamp:
2011-06-13T10:12:41+02:00 (7 years ago)
Author:
juhosg
Message:

tools/firmware-utils: fix buffalo csum calculation

Also print an error message if decryption fails.

Location:
trunk/tools/firmware-utils/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/firmware-utils/src/buffalo-enc.c

    r27050 r27167  
    8888 
    8989        err = decrypt_buf(&ep, buf, src_len); 
    90         if (err) 
    91                 goto out; 
     90        if (err) { 
     91                ERR("unable to decrypt '%s'", ifname); 
     92                goto out; 
     93        } 
    9294 
    9395        printf("Magic\t\t: '%s'\n", ep.magic); 
  • trunk/tools/firmware-utils/src/buffalo-lib.c

    r27050 r27167  
    180180uint32_t buffalo_csum(uint32_t csum, void *buf, unsigned long len) 
    181181{ 
    182         unsigned char *p = buf; 
     182        char *p = buf; 
    183183 
    184184        while (len--) { 
Note: See TracChangeset for help on using the changeset viewer.