@@ -157,7 +157,7 @@ int SPIFBlockDevice::init()
157157 status = SPIF_BD_ERROR_DEVICE_ERROR;
158158 goto exit_point;
159159 } else {
160- tr_debug (" Initialize flash memory OK\n " );
160+ tr_debug (" Initialize flash memory OK" );
161161 }
162162
163163 /* Read Manufacturer ID (1byte), and Device ID (2bytes)*/
@@ -907,21 +907,21 @@ int SPIFBlockDevice::_reset_flash_mem()
907907 // Perform Soft Reset of the Device prior to initialization
908908 int status = 0 ;
909909 char status_value[2 ] = {0 };
910- tr_info (" _reset_flash_mem:\n " );
910+ tr_info (" _reset_flash_mem:" );
911911 // Read the Status Register from device
912912 if (SPIF_BD_ERROR_OK == _spi_send_general_command (SPIF_RDSR, SPI_NO_ADDRESS_COMMAND, NULL , 0 , status_value, 1 )) {
913913 // 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 ]);
915915 } else {
916- tr_error (" Reading Status Register failed\n " );
916+ tr_error (" Reading Status Register failed" );
917917 status = -1 ;
918918 }
919919
920920 if (0 == status) {
921921 // Send Reset Enable
922922 if (SPIF_BD_ERROR_OK == _spi_send_general_command (SPIF_RSTEN, SPI_NO_ADDRESS_COMMAND, NULL , 0 , NULL , 0 )) {
923923 // store received values in status_value
924- tr_debug (" Sending RSTEN Success\n " );
924+ tr_debug (" Sending RSTEN Success" );
925925 } else {
926926 tr_error (" Sending RSTEN failed" );
927927 status = -1 ;
@@ -931,7 +931,7 @@ int SPIFBlockDevice::_reset_flash_mem()
931931 // Send Reset
932932 if (SPIF_BD_ERROR_OK == _spi_send_general_command (SPIF_RST, SPI_NO_ADDRESS_COMMAND, NULL , 0 , NULL , 0 )) {
933933 // store received values in status_value
934- tr_debug (" Sending RST Success\n " );
934+ tr_debug (" Sending RST Success" );
935935 } else {
936936 tr_error (" Sending RST failed" );
937937 status = -1 ;
0 commit comments