@@ -157,7 +157,7 @@ int SPIFBlockDevice::init()
157
157
status = SPIF_BD_ERROR_DEVICE_ERROR;
158
158
goto exit_point;
159
159
} else {
160
- tr_debug (" Initialize flash memory OK\n " );
160
+ tr_debug (" Initialize flash memory OK" );
161
161
}
162
162
163
163
/* Read Manufacturer ID (1byte), and Device ID (2bytes)*/
@@ -907,21 +907,21 @@ int SPIFBlockDevice::_reset_flash_mem()
907
907
// Perform Soft Reset of the Device prior to initialization
908
908
int status = 0 ;
909
909
char status_value[2 ] = {0 };
910
- tr_info (" _reset_flash_mem:\n " );
910
+ tr_info (" _reset_flash_mem:" );
911
911
// Read the Status Register from device
912
912
if (SPIF_BD_ERROR_OK == _spi_send_general_command (SPIF_RDSR, SPI_NO_ADDRESS_COMMAND, NULL , 0 , status_value, 1 )) {
913
913
// store received values in status_value
914
- tr_debug (" Reading Status Register Success: value = 0x%x\n " , (int )status_value[0 ]);
914
+ tr_debug (" Reading Status Register Success: value = 0x%x" , (int )status_value[0 ]);
915
915
} else {
916
- tr_error (" Reading Status Register failed\n " );
916
+ tr_error (" Reading Status Register failed" );
917
917
status = -1 ;
918
918
}
919
919
920
920
if (0 == status) {
921
921
// Send Reset Enable
922
922
if (SPIF_BD_ERROR_OK == _spi_send_general_command (SPIF_RSTEN, SPI_NO_ADDRESS_COMMAND, NULL , 0 , NULL , 0 )) {
923
923
// store received values in status_value
924
- tr_debug (" Sending RSTEN Success\n " );
924
+ tr_debug (" Sending RSTEN Success" );
925
925
} else {
926
926
tr_error (" Sending RSTEN failed" );
927
927
status = -1 ;
@@ -931,7 +931,7 @@ int SPIFBlockDevice::_reset_flash_mem()
931
931
// Send Reset
932
932
if (SPIF_BD_ERROR_OK == _spi_send_general_command (SPIF_RST, SPI_NO_ADDRESS_COMMAND, NULL , 0 , NULL , 0 )) {
933
933
// store received values in status_value
934
- tr_debug (" Sending RST Success\n " );
934
+ tr_debug (" Sending RST Success" );
935
935
} else {
936
936
tr_error (" Sending RST failed" );
937
937
status = -1 ;
0 commit comments