Skip to content

Commit 55ab6e0

Browse files
author
Rohit Grover
committed
comment out uses of PRI*32 in printf messages
1 parent 58c2e29 commit 55ab6e0

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

TESTS/flash_journal/basicAPI/basicAPI.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,27 +54,27 @@ void callbackHandler(int32_t status, FlashJournal_OpCode_t cmd_code)
5454

5555
switch (cmd_code) {
5656
case FLASH_JOURNAL_OPCODE_INITIALIZE:
57-
printf("journal_callbackHandler: callback for init with status %" PRId32 "\n", status);
57+
// printf("journal_callbackHandler: callback for init with status %" PRId32 "\n", status);
5858
break;
5959

6060
case FLASH_JOURNAL_OPCODE_READ_BLOB:
61-
printf("journal_callbackHandler: callback for read with status %" PRId32 "\n", status);
61+
// printf("journal_callbackHandler: callback for read with status %" PRId32 "\n", status);
6262
break;
6363

6464
case FLASH_JOURNAL_OPCODE_LOG_BLOB:
65-
printf("journal_callbackHandler: callback for log with status %" PRId32 "\n", status);
65+
// printf("journal_callbackHandler: callback for log with status %" PRId32 "\n", status);
6666
break;
6767

6868
case FLASH_JOURNAL_OPCODE_COMMIT:
69-
printf("journal_callbackHandler: callback for commit with status %" PRId32 "\n", status);
69+
// printf("journal_callbackHandler: callback for commit with status %" PRId32 "\n", status);
7070
break;
7171

7272
case FLASH_JOURNAL_OPCODE_RESET:
73-
printf("journal_callbackHandler: callback for reset with status %" PRId32 "\n", status);
73+
// printf("journal_callbackHandler: callback for reset with status %" PRId32 "\n", status);
7474
break;
7575

7676
default:
77-
printf("journal_callbackHandler: callback for opcode %u with status %" PRId32 "\n", cmd_code, status);
77+
// printf("journal_callbackHandler: callback for opcode %u with status %" PRId32 "\n", cmd_code, status);
7878
break;
7979
}
8080
Harness::validate_callback(); // Validate the callback
@@ -198,7 +198,7 @@ control_t test_commitWithoutLogs(const size_t call_count)
198198

199199
case 2:
200200
rc = FlashJournal_commit(&journal);
201-
printf("commit returned %" PRId32 "\r\n", rc);
201+
// printf("commit returned %" PRId32 "\r\n", rc);
202202
TEST_ASSERT(rc >= JOURNAL_STATUS_OK);
203203
if (rc == JOURNAL_STATUS_OK) {
204204
TEST_ASSERT_EQUAL(1, drv->GetCapabilities().asynchronous_ops);
@@ -609,7 +609,7 @@ control_t test_logSeveralOddSizedChunks(size_t call_count)
609609
printf("test_logSeveralOddSizedChunks: iteration with call_count %u\n", call_count);
610610
memset(buffer, PATTERN, SIZEOF_ODD_CHUNK);
611611
rc = FlashJournal_log(&journal, buffer, SIZEOF_ODD_CHUNK);
612-
printf("test_logSeveralOddSizedChunks: called FlashJournal_log(): rc = %" PRId32 "\n", rc);
612+
// printf("test_logSeveralOddSizedChunks: called FlashJournal_log(): rc = %" PRId32 "\n", rc);
613613
TEST_ASSERT((rc >= JOURNAL_STATUS_OK) || (rc == JOURNAL_STATUS_SMALL_LOG_REQUEST));
614614
if (rc == JOURNAL_STATUS_OK) {
615615
TEST_ASSERT_EQUAL(1, drv->GetCapabilities().asynchronous_ops);
@@ -675,7 +675,7 @@ control_t test_multipleWritesFollowedByCommitFollowedByMultipleReads(const size_
675675
printf("writing pattern %02x\n", PATTERN ^ call_count);
676676
memset(buffer, (PATTERN ^ call_count), SIZEOF_WRITE);
677677
rc = FlashJournal_log(&journal, buffer, SIZEOF_WRITE);
678-
printf("test_multipleWritesFollowedByCommitFollowedByMultipleReads: log returned %" PRId32 "\n", rc);
678+
// printf("test_multipleWritesFollowedByCommitFollowedByMultipleReads: log returned %" PRId32 "\n", rc);
679679
TEST_ASSERT(rc >= JOURNAL_STATUS_OK);
680680
if (rc == JOURNAL_STATUS_OK) {
681681
TEST_ASSERT_EQUAL(1, drv->GetCapabilities().asynchronous_ops);
@@ -690,7 +690,7 @@ control_t test_multipleWritesFollowedByCommitFollowedByMultipleReads(const size_
690690
TEST_ASSERT_EQUAL(1, drv->GetCapabilities().asynchronous_ops);
691691
return CaseTimeout(500) + CaseRepeatAll;
692692
}
693-
printf("test_multipleWritesFollowedByCommitFollowedByMultipleReads: commit returned %" PRId32 "\n", rc);
693+
// printf("test_multipleWritesFollowedByCommitFollowedByMultipleReads: commit returned %" PRId32 "\n", rc);
694694
callbackStatus = rc; /* pass forward the return value so that the next iteration can check callbackStatus */
695695
return CaseRepeatAll;
696696
} else if (call_count < (N_WRITES + 1 + N_READS + 1)) {

TESTS/storage_abstraction/basicAPI/basicAPI.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ void programDataCompleteCallback(int32_t status, ARM_STORAGE_OPERATION operation
309309

310310
TEST_ASSERT((operation == ARM_STORAGE_OPERATION_ERASE) || (operation == ARM_STORAGE_OPERATION_PROGRAM_DATA));
311311
if (operation == ARM_STORAGE_OPERATION_ERASE) {
312-
tr_info("programming %u bytes at address %lu with pattern 0x%" PRIx32, sizeofData, (uint32_t)addr, BYTE_PATTERN);
312+
// tr_info("programming %u bytes at address %lu with pattern 0x%" PRIx32, sizeofData, (uint32_t)addr, BYTE_PATTERN);
313313
status = drv->ProgramData(addr, buffer, sizeofData);
314314

315315
if (status < ARM_DRIVER_OK) {
@@ -386,7 +386,7 @@ control_t test_programDataUsingProgramUnit(const size_t call_count)
386386
TEST_ASSERT(rc > 0);
387387

388388
/* program the sector at addr */
389-
tr_info("programming %u bytes at address %lu with pattern 0x%" PRIx32, sizeofData, (uint32_t)addr, BYTE_PATTERN);
389+
// tr_info("programming %u bytes at address %lu with pattern 0x%" PRIx32, sizeofData, (uint32_t)addr, BYTE_PATTERN);
390390
rc = drv->ProgramData((uint32_t)addr, buffer, sizeofData);
391391
if (rc == ARM_DRIVER_OK) {
392392
TEST_ASSERT_EQUAL(1, capabilities.asynchronous_ops);

0 commit comments

Comments
 (0)