Skip to content

Commit e1411bb

Browse files
authored
Merge pull request #80 from mysterywolf/typo
Fix typo in sfud error messages RT-Thread/rt-thread#6927
2 parents 04e2f46 + 7073eda commit e1411bb

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

sfud/src/sfud.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ sfud_err sfud_device_init(sfud_flash *flash) {
9595
}
9696
if (result == SFUD_SUCCESS) {
9797
flash->init_ok = true;
98-
SFUD_INFO("%s flash device is initialize success.", flash->name);
98+
SFUD_INFO("%s flash device initialized successfully.", flash->name);
9999
} else {
100100
flash->init_ok = false;
101-
SFUD_INFO("Error: %s flash device is initialize fail.", flash->name);
101+
SFUD_INFO("Error: %s flash device initialization failed.", flash->name);
102102
}
103103

104104
return result;
@@ -325,7 +325,7 @@ static sfud_err hardware_init(sfud_flash *flash) {
325325

326326
if (flash->chip.capacity == 0 || flash->chip.write_mode == 0 || flash->chip.erase_gran == 0
327327
|| flash->chip.erase_gran_cmd == 0) {
328-
SFUD_INFO("Warning: This flash device is not found or not support.");
328+
SFUD_INFO("Warning: This flash device is not found or not supported.");
329329
return SFUD_ERR_NOT_FOUND;
330330
} else {
331331
const char *flash_mf_name = NULL;
@@ -338,12 +338,12 @@ static sfud_err hardware_init(sfud_flash *flash) {
338338
}
339339
/* print manufacturer and flash chip name */
340340
if (flash_mf_name && flash->chip.name) {
341-
SFUD_INFO("Find a %s %s flash chip. Size is %ld bytes.", flash_mf_name, flash->chip.name,
341+
SFUD_INFO("Found a %s %s flash chip. Size is %ld bytes.", flash_mf_name, flash->chip.name,
342342
flash->chip.capacity);
343343
} else if (flash_mf_name) {
344-
SFUD_INFO("Find a %s flash chip. Size is %ld bytes.", flash_mf_name, flash->chip.capacity);
344+
SFUD_INFO("Found a %s flash chip. Size is %ld bytes.", flash_mf_name, flash->chip.capacity);
345345
} else {
346-
SFUD_INFO("Find a flash chip. Size is %ld bytes.", flash->chip.capacity);
346+
SFUD_INFO("Found a flash chip. Size is %ld bytes.", flash->chip.capacity);
347347
}
348348
}
349349

sfud/src/sfud_sfdp.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ bool sfud_read_sfdp(sfud_flash *flash) {
8585
if (read_sfdp_header(flash) && read_basic_header(flash, &basic_header)) {
8686
return read_basic_table(flash, &basic_header);
8787
} else {
88-
SFUD_INFO("Warning: Read SFDP parameter header information failed. The %s is not support JEDEC SFDP.", flash->name);
88+
SFUD_INFO("Warning: Read SFDP parameter header information failed. The %s does not support JEDEC SFDP.", flash->name);
8989
return false;
9090
}
9191
}
@@ -125,7 +125,7 @@ static bool read_sfdp_header(sfud_flash *flash) {
125125
sfdp->minor_rev = header[4];
126126
sfdp->major_rev = header[5];
127127
if (sfdp->major_rev > SUPPORT_MAX_SFDP_MAJOR_REV) {
128-
SFUD_INFO("Error: This reversion(V%d.%d) SFDP is not supported.", sfdp->major_rev, sfdp->minor_rev);
128+
SFUD_INFO("Error: This reversion(V%d.%d) of SFDP is not supported.", sfdp->major_rev, sfdp->minor_rev);
129129
return false;
130130
}
131131
SFUD_DEBUG("Check SFDP header is OK. The reversion is V%d.%d, NPN is %d.", sfdp->major_rev, sfdp->minor_rev,
@@ -162,7 +162,7 @@ static bool read_basic_header(const sfud_flash *flash, sfdp_para_header *basic_h
162162
basic_header->ptp = (long)header[4] | (long)header[5] << 8 | (long)header[6] << 16;
163163
/* check JEDEC basic flash parameter header */
164164
if (basic_header->major_rev > SUPPORT_MAX_SFDP_MAJOR_REV) {
165-
SFUD_INFO("Error: This reversion(V%d.%d) JEDEC basic flash parameter header is not supported.",
165+
SFUD_INFO("Error: This reversion(V%d.%d) of JEDEC basic flash parameter header is not supported.",
166166
basic_header->major_rev, basic_header->minor_rev);
167167
return false;
168168
}

0 commit comments

Comments
 (0)