From f898ac441112fd93001e6ad46890ed13fb6b3da2 Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Sat, 10 May 2014 22:39:47 +0200 Subject: all: Fix typo --- src/cold-flash.c | 6 +++--- src/disk.c | 2 +- src/fiasco.c | 2 +- src/local.c | 4 ++-- src/main.c | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/cold-flash.c b/src/cold-flash.c index 77c393d..6441187 100644 --- a/src/cold-flash.c +++ b/src/cold-flash.c @@ -80,7 +80,7 @@ static uint32_t crc32(unsigned char * bytes, size_t size, uint32_t crc) { } /* 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 */ 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"); ret = usb_bulk_write(udev, WRITE_DEV, (char *)&ping_msg, sizeof(ping_msg), WRITE_TIMEOUT); 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"); while ( try_read > 0 ) { @@ -303,7 +303,7 @@ static int ping_timeout(usb_dev_handle * udev) { if ( pong ) break; - printf("Responce timeout\n"); + printf("Response timeout\n"); --try_ping; } diff --git a/src/disk.c b/src/disk.c index c090ad6..eb63211 100644 --- a/src/disk.c +++ b/src/disk.c @@ -129,7 +129,7 @@ int disk_dump_raw(const char * blkdev, const char * file) { free(path); 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); return -1; } diff --git a/src/fiasco.c b/src/fiasco.c index b2538f7..721785e 100644 --- a/src/fiasco.c +++ b/src/fiasco.c @@ -192,7 +192,7 @@ struct fiasco * fiasco_alloc_from_file(const char * file) { if ( ! hwrevs[0] ) strcpy(hwrevs, hwrev); else { - /* TODO: check if hwrevs has enought size */ + /* TODO: check if hwrevs has enough size */ strcat(hwrevs, ","); strcat(hwrevs, hwrev); } diff --git a/src/local.c b/src/local.c index 290fba5..e90011b 100644 --- a/src/local.c +++ b/src/local.c @@ -212,7 +212,7 @@ static int local_nanddump(const char * file, int mtd, int offset, int length) { free(path); 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; } @@ -424,7 +424,7 @@ int local_dump_image(enum image_type image, const char * file) { } 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; } diff --git a/src/main.c b/src/main.c index f367a0d..fdd2b4b 100644 --- a/src/main.c +++ b/src/main.c @@ -153,7 +153,7 @@ static void parse_image_arg(char * arg, struct image_list ** image_first) { char * layout; 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 ) { image = image_alloc_from_file(arg, NULL, NULL, NULL, NULL, NULL); if ( ! image ) { @@ -746,7 +746,7 @@ int main(int argc, char **argv) { if ( fiasco_in ) fiasco_in->first = image_first; - /* identificate images */ + /* identify images */ if ( image_ident ) { if ( fiasco_in ) { fiasco_print_info(fiasco_in); @@ -833,7 +833,7 @@ int main(int argc, char **argv) { } 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; goto clean; } -- cgit v1.2.3