Skip to content

Commit de98ff2

Browse files
committed
new newlines for libserialport log messages
1 parent c37a0e4 commit de98ff2

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

src/ZeDMDComm.cpp

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ bool ZeDMDComm::Connect()
360360
const char* error_msg = sp_last_error_message();
361361
if (error_msg)
362362
{
363-
Log("libserialport error: %s\n", error_msg);
363+
Log("libserialport error: %s", error_msg);
364364
}
365365
}
366366

@@ -407,7 +407,7 @@ bool ZeDMDComm::Connect(char* pDevice)
407407
const char* error_msg = sp_last_error_message();
408408
if (error_msg)
409409
{
410-
Log("libserialport error: %s\n", error_msg);
410+
Log("libserialport error: %s", error_msg);
411411
}
412412
}
413413

@@ -429,7 +429,7 @@ bool ZeDMDComm::Connect(char* pDevice)
429429
const char* error_msg = sp_last_error_message();
430430
if (error_msg)
431431
{
432-
Log("libserialport error: %s\n", error_msg);
432+
Log("libserialport error: %s", error_msg);
433433
}
434434
}
435435

@@ -485,7 +485,7 @@ bool ZeDMDComm::Connect(char* pDevice)
485485
const char* error_msg = sp_last_error_message();
486486
if (error_msg)
487487
{
488-
Log("libserialport error: %s\n", error_msg);
488+
Log("libserialport error: %s", error_msg);
489489
}
490490
Log("Unable to open device %s, error code %d", pDevice, result);
491491
sp_free_port(m_pSerialPort);
@@ -498,7 +498,7 @@ bool ZeDMDComm::Connect(char* pDevice)
498498
const char* error_msg = sp_last_error_message();
499499
if (error_msg)
500500
{
501-
Log("libserialport error: %s\n", error_msg);
501+
Log("libserialport error: %s", error_msg);
502502
}
503503
Log("Unable to set baudrate on device %s, error code %d", pDevice, result);
504504
sp_free_port(m_pSerialPort);
@@ -511,7 +511,7 @@ bool ZeDMDComm::Connect(char* pDevice)
511511
const char* error_msg = sp_last_error_message();
512512
if (error_msg)
513513
{
514-
Log("libserialport error: %s\n", error_msg);
514+
Log("libserialport error: %s", error_msg);
515515
}
516516
Log("Unable to set bits on device %s, error code %d", pDevice, result);
517517
sp_free_port(m_pSerialPort);
@@ -524,7 +524,7 @@ bool ZeDMDComm::Connect(char* pDevice)
524524
const char* error_msg = sp_last_error_message();
525525
if (error_msg)
526526
{
527-
Log("libserialport error: %s\n", error_msg);
527+
Log("libserialport error: %s", error_msg);
528528
}
529529
Log("Unable to set parity on device %s, error code %d", pDevice, result);
530530
sp_free_port(m_pSerialPort);
@@ -537,7 +537,7 @@ bool ZeDMDComm::Connect(char* pDevice)
537537
const char* error_msg = sp_last_error_message();
538538
if (error_msg)
539539
{
540-
Log("libserialport error: %s\n", error_msg);
540+
Log("libserialport error: %s", error_msg);
541541
}
542542
Log("Unable to to set stopbits on device %s, error code %d", pDevice, result);
543543
sp_free_port(m_pSerialPort);
@@ -550,7 +550,7 @@ bool ZeDMDComm::Connect(char* pDevice)
550550
const char* error_msg = sp_last_error_message();
551551
if (error_msg)
552552
{
553-
Log("libserialport error: %s\n", error_msg);
553+
Log("libserialport error: %s", error_msg);
554554
}
555555
Log("Unable to set xon xoff on device %s, error code %d", pDevice, result);
556556
sp_free_port(m_pSerialPort);
@@ -563,7 +563,7 @@ bool ZeDMDComm::Connect(char* pDevice)
563563
const char* error_msg = sp_last_error_message();
564564
if (error_msg)
565565
{
566-
Log("libserialport error: %s\n", error_msg);
566+
Log("libserialport error: %s", error_msg);
567567
}
568568
Log("Unable to set flowcontrol on device %s, error code %d", pDevice, result);
569569
sp_free_port(m_pSerialPort);
@@ -600,7 +600,7 @@ bool ZeDMDComm::Handshake(char* pDevice)
600600
const char* error_msg = sp_last_error_message();
601601
if (error_msg)
602602
{
603-
Log("libserialport error: %s\n", error_msg);
603+
Log("libserialport error: %s", error_msg);
604604
}
605605
}
606606

@@ -611,7 +611,7 @@ bool ZeDMDComm::Handshake(char* pDevice)
611611
const char* error_msg = sp_last_error_message();
612612
if (error_msg)
613613
{
614-
Log("libserialport error: %s\n", error_msg);
614+
Log("libserialport error: %s", error_msg);
615615
}
616616
}
617617
std::this_thread::sleep_for(std::chrono::milliseconds(2));
@@ -692,7 +692,7 @@ bool ZeDMDComm::Handshake(char* pDevice)
692692
const char* error_msg = sp_last_error_message();
693693
if (error_msg)
694694
{
695-
Log("libserialport error: %s\n", error_msg);
695+
Log("libserialport error: %s", error_msg);
696696
}
697697
}
698698

@@ -706,7 +706,7 @@ bool ZeDMDComm::Handshake(char* pDevice)
706706
const char* error_msg = sp_last_error_message();
707707
if (error_msg)
708708
{
709-
Log("libserialport error: %s\n", error_msg);
709+
Log("libserialport error: %s", error_msg);
710710
}
711711
}
712712

@@ -876,7 +876,7 @@ bool ZeDMDComm::SendChunks(uint8_t* pData, uint16_t size)
876876
const char* error_msg = sp_last_error_message();
877877
if (error_msg)
878878
{
879-
Log("libserialport error: %s\n", error_msg);
879+
Log("libserialport error: %s", error_msg);
880880
}
881881
}
882882
}
@@ -919,7 +919,7 @@ bool ZeDMDComm::SendChunks(uint8_t* pData, uint16_t size)
919919
const char* error_msg = sp_last_error_message();
920920
if (error_msg)
921921
{
922-
Log("libserialport error: %s\n", error_msg);
922+
Log("libserialport error: %s", error_msg);
923923
}
924924
}
925925

@@ -955,7 +955,7 @@ bool ZeDMDComm::SendChunks(uint8_t* pData, uint16_t size)
955955
const char* error_msg = sp_last_error_message();
956956
if (error_msg)
957957
{
958-
Log("libserialport error: %s\n", error_msg);
958+
Log("libserialport error: %s", error_msg);
959959
}
960960
}
961961

0 commit comments

Comments
 (0)