@@ -54,27 +54,27 @@ void callbackHandler(int32_t status, FlashJournal_OpCode_t cmd_code)
54
54
55
55
switch (cmd_code) {
56
56
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);
58
58
break ;
59
59
60
60
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);
62
62
break ;
63
63
64
64
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);
66
66
break ;
67
67
68
68
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);
70
70
break ;
71
71
72
72
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);
74
74
break ;
75
75
76
76
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);
78
78
break ;
79
79
}
80
80
Harness::validate_callback (); // Validate the callback
@@ -198,7 +198,7 @@ control_t test_commitWithoutLogs(const size_t call_count)
198
198
199
199
case 2 :
200
200
rc = FlashJournal_commit (&journal);
201
- printf (" commit returned %" PRId32 " \r\n " , rc);
201
+ // printf("commit returned %" PRId32 "\r\n", rc);
202
202
TEST_ASSERT (rc >= JOURNAL_STATUS_OK);
203
203
if (rc == JOURNAL_STATUS_OK) {
204
204
TEST_ASSERT_EQUAL (1 , drv->GetCapabilities ().asynchronous_ops );
@@ -609,7 +609,7 @@ control_t test_logSeveralOddSizedChunks(size_t call_count)
609
609
printf (" test_logSeveralOddSizedChunks: iteration with call_count %u\n " , call_count);
610
610
memset (buffer, PATTERN, SIZEOF_ODD_CHUNK);
611
611
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);
613
613
TEST_ASSERT ((rc >= JOURNAL_STATUS_OK) || (rc == JOURNAL_STATUS_SMALL_LOG_REQUEST));
614
614
if (rc == JOURNAL_STATUS_OK) {
615
615
TEST_ASSERT_EQUAL (1 , drv->GetCapabilities ().asynchronous_ops );
@@ -675,7 +675,7 @@ control_t test_multipleWritesFollowedByCommitFollowedByMultipleReads(const size_
675
675
printf (" writing pattern %02x\n " , PATTERN ^ call_count);
676
676
memset (buffer, (PATTERN ^ call_count), SIZEOF_WRITE);
677
677
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);
679
679
TEST_ASSERT (rc >= JOURNAL_STATUS_OK);
680
680
if (rc == JOURNAL_STATUS_OK) {
681
681
TEST_ASSERT_EQUAL (1 , drv->GetCapabilities ().asynchronous_ops );
@@ -690,7 +690,7 @@ control_t test_multipleWritesFollowedByCommitFollowedByMultipleReads(const size_
690
690
TEST_ASSERT_EQUAL (1 , drv->GetCapabilities ().asynchronous_ops );
691
691
return CaseTimeout (500 ) + CaseRepeatAll;
692
692
}
693
- printf (" test_multipleWritesFollowedByCommitFollowedByMultipleReads: commit returned %" PRId32 " \n " , rc);
693
+ // printf("test_multipleWritesFollowedByCommitFollowedByMultipleReads: commit returned %" PRId32 "\n", rc);
694
694
callbackStatus = rc; /* pass forward the return value so that the next iteration can check callbackStatus */
695
695
return CaseRepeatAll;
696
696
} else if (call_count < (N_WRITES + 1 + N_READS + 1 )) {
0 commit comments