all: Fix typo
This commit is contained in:
1 parent
c6ee6a8e68
commit
f898ac4411
5 files changed
+10
-10
No files matched your search
+3
-3
@@ -80,7 +80,7 @@ static uint32_t crc32(unsigned char * bytes, size_t size, uint32_t crc) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Omap Boot Messages */
|
/* Omap Boot Messages */
|
||||||
/* See spruf98v.pdf (page 3444): OMAP35x Technical Reference Manual - 25.4.5 Periheral Booting */
|
/* See spruf98v.pdf (page 3444): OMAP35x Technical Reference Manual - 25.4.5 Peripheral Booting */
|
||||||
|
|
||||||
/* Omap Peripheral boot message */
|
/* Omap Peripheral boot message */
|
||||||
static const uint32_t omap_peripheral_msg = 0xF0030002;
|
static const uint32_t omap_peripheral_msg = 0xF0030002;
|
||||||
@@ -282,7 +282,7 @@ static int ping_timeout(usb_dev_handle * udev) {
|
|||||||
printf("Sending X-Loader ping message\n");
|
printf("Sending X-Loader ping message\n");
|
||||||
ret = usb_bulk_write(udev, WRITE_DEV, (char *)&ping_msg, sizeof(ping_msg), WRITE_TIMEOUT);
|
ret = usb_bulk_write(udev, WRITE_DEV, (char *)&ping_msg, sizeof(ping_msg), WRITE_TIMEOUT);
|
||||||
if ( ret != sizeof(ping_msg) )
|
if ( ret != sizeof(ping_msg) )
|
||||||
ERROR_RETURN("Sending X-Loader ping message faild", -1);
|
ERROR_RETURN("Sending X-Loader ping message failed", -1);
|
||||||
|
|
||||||
printf("Waiting for X-Loader pong response...\n");
|
printf("Waiting for X-Loader pong response...\n");
|
||||||
while ( try_read > 0 ) {
|
while ( try_read > 0 ) {
|
||||||
@@ -303,7 +303,7 @@ static int ping_timeout(usb_dev_handle * udev) {
|
|||||||
if ( pong )
|
if ( pong )
|
||||||
break;
|
break;
|
||||||
|
|
||||||
printf("Responce timeout\n");
|
printf("Response timeout\n");
|
||||||
--try_ping;
|
--try_ping;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -129,7 +129,7 @@ int disk_dump_raw(const char * blkdev, const char * file) {
|
|||||||
free(path);
|
free(path);
|
||||||
|
|
||||||
if ( ret == 0 && buf.f_bsize * buf.f_bfree < blksize ) {
|
if ( ret == 0 && buf.f_bsize * buf.f_bfree < blksize ) {
|
||||||
ERROR("Not enought free space (have: %llu, need: %llu)", (unsigned long long int)(buf.f_bsize) * buf.f_bfree, (unsigned long long int)blksize);
|
ERROR("Not enough free space (have: %llu, need: %llu)", (unsigned long long int)(buf.f_bsize) * buf.f_bfree, (unsigned long long int)blksize);
|
||||||
close(fd1);
|
close(fd1);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -192,7 +192,7 @@ struct fiasco * fiasco_alloc_from_file(const char * file) {
|
|||||||
if ( ! hwrevs[0] )
|
if ( ! hwrevs[0] )
|
||||||
strcpy(hwrevs, hwrev);
|
strcpy(hwrevs, hwrev);
|
||||||
else {
|
else {
|
||||||
/* TODO: check if hwrevs has enought size */
|
/* TODO: check if hwrevs has enough size */
|
||||||
strcat(hwrevs, ",");
|
strcat(hwrevs, ",");
|
||||||
strcat(hwrevs, hwrev);
|
strcat(hwrevs, hwrev);
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -212,7 +212,7 @@ static int local_nanddump(const char * file, int mtd, int offset, int length) {
|
|||||||
free(path);
|
free(path);
|
||||||
|
|
||||||
if ( ret == 0 && buf.f_bsize * buf.f_bfree < (long unsigned int)length ) {
|
if ( ret == 0 && buf.f_bsize * buf.f_bfree < (long unsigned int)length ) {
|
||||||
ERROR("Not enought free space (have: %lu, need: %d)", buf.f_bsize * buf.f_bfree, length);
|
ERROR("Not enough free space (have: %lu, need: %d)", buf.f_bsize * buf.f_bfree, length);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -424,7 +424,7 @@ int local_dump_image(enum image_type image, const char * file) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( image >= nanddump[device].count ) {
|
if ( image >= nanddump[device].count ) {
|
||||||
ERROR("Unsuported image type: %s", image_type_to_string(image));
|
ERROR("Unsupported image type: %s", image_type_to_string(image));
|
||||||
goto clean;
|
goto clean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -153,7 +153,7 @@ static void parse_image_arg(char * arg, struct image_list ** image_first) {
|
|||||||
char * layout;
|
char * layout;
|
||||||
char * layout_file;
|
char * layout_file;
|
||||||
|
|
||||||
/* Fisrt check if arg is file, then try to parse arg format */
|
/* First check if arg is file, then try to parse arg format */
|
||||||
if ( stat(arg, &st) == 0 ) {
|
if ( stat(arg, &st) == 0 ) {
|
||||||
image = image_alloc_from_file(arg, NULL, NULL, NULL, NULL, NULL);
|
image = image_alloc_from_file(arg, NULL, NULL, NULL, NULL, NULL);
|
||||||
if ( ! image ) {
|
if ( ! image ) {
|
||||||
@@ -746,7 +746,7 @@ int main(int argc, char **argv) {
|
|||||||
if ( fiasco_in )
|
if ( fiasco_in )
|
||||||
fiasco_in->first = image_first;
|
fiasco_in->first = image_first;
|
||||||
|
|
||||||
/* identificate images */
|
/* identify images */
|
||||||
if ( image_ident ) {
|
if ( image_ident ) {
|
||||||
if ( fiasco_in ) {
|
if ( fiasco_in ) {
|
||||||
fiasco_print_info(fiasco_in);
|
fiasco_print_info(fiasco_in);
|
||||||
@@ -833,7 +833,7 @@ int main(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( dev_load && dev_flash ) {
|
if ( dev_load && dev_flash ) {
|
||||||
ERROR("Options load and flash cannot de used together");
|
ERROR("Options load and flash cannot be used together");
|
||||||
ret = 1;
|
ret = 1;
|
||||||
goto clean;
|
goto clean;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user