Skip to content

Commit ccb7738

Browse files
author
Seppo Takalo
committed
Remove linefeeds from debug prints
1 parent f0790cd commit ccb7738

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

components/storage/blockdevice/COMPONENT_QSPIF/QSPIFBlockDevice.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ QSPIFBlockDevice::QSPIFBlockDevice(PinName io0, PinName io1, PinName io2, PinNam
119119
_unique_device_status = add_new_csel_instance(csel);
120120

121121
if (_unique_device_status == 0) {
122-
tr_debug("Adding a new QSPIFBlockDevice csel: %d\n", (int)csel);
122+
tr_debug("Adding a new QSPIFBlockDevice csel: %d", (int)csel);
123123
} else if (_unique_device_status == -1) {
124-
tr_error("QSPIFBlockDevice with the same csel(%d) already exists\n", (int)csel);
124+
tr_error("QSPIFBlockDevice with the same csel(%d) already exists", (int)csel);
125125
} else {
126-
tr_error("Too many different QSPIFBlockDevice devices - max allowed: %d\n", QSPIF_MAX_ACTIVE_FLASH_DEVICES);
126+
tr_error("Too many different QSPIFBlockDevice devices - max allowed: %d", QSPIF_MAX_ACTIVE_FLASH_DEVICES);
127127
}
128128
}
129129

@@ -199,7 +199,7 @@ int QSPIFBlockDevice::init()
199199
goto exit_point;
200200
}
201201

202-
tr_debug("Vendor device ID = 0x%x 0x%x 0x%x 0x%x \n", vendor_device_ids[0],
202+
tr_debug("Vendor device ID = 0x%x 0x%x 0x%x 0x%x", vendor_device_ids[0],
203203
vendor_device_ids[1], vendor_device_ids[2], vendor_device_ids[3]);
204204
switch (vendor_device_ids[0]) {
205205
case 0xbf:

components/storage/blockdevice/COMPONENT_SPIF/SPIFBlockDevice.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)