Skip to content

Commit 41ce96b

Browse files
committed
fix lack ";"
1 parent e8196b2 commit 41ce96b

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/state_bcm.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ void state_bcm()
104104
/* Check if this is an error frame */
105105
if(msg.msg_head.can_id & CAN_ERR_FLAG) {
106106
if(msg.frame.len != CAN_ERR_DLC) {
107-
PRINT_ERROR("Error frame has a wrong DLC!\n")
108-
} else {
107+
PRINT_ERROR("Error frame has a wrong DLC!\n");
108+
} else {
109109
snprintf(rxmsg, RXLEN, "< error %03X %ld.%06ld ", msg.msg_head.can_id, tv.tv_sec, tv.tv_usec);
110110

111111
for ( i = 0; i < msg.frame.len; i++)
@@ -204,7 +204,7 @@ void state_bcm()
204204
if ( (items < 2) ||
205205
(msg.frame.len > 8) ||
206206
(items != 2 + msg.frame.len)) {
207-
PRINT_ERROR("Syntax error in send command\n")
207+
PRINT_ERROR("Syntax error in send command\n");
208208
return;
209209
}
210210

@@ -272,7 +272,7 @@ void state_bcm()
272272
if ( (items < 2) ||
273273
(msg.frame.len > 64) ||
274274
(items != 3 + msg.frame.len)) {
275-
PRINT_ERROR("Syntax error in fdsend command\n")
275+
PRINT_ERROR("Syntax error in fdsend command\n");
276276
return;
277277
}
278278

@@ -344,7 +344,7 @@ void state_bcm()
344344
if ( (items < 2) ||
345345
(msg.frame.len > 8) ||
346346
(items != 2 + msg.frame.len)) {
347-
PRINT_ERROR("Syntax error in update send job command\n")
347+
PRINT_ERROR("Syntax error in update send job command\n");
348348
return;
349349
}
350350

@@ -404,7 +404,7 @@ void state_bcm()
404404
if( (items < 4) ||
405405
(msg.frame.len > 8) ||
406406
(items != 4 + msg.frame.len) ) {
407-
PRINT_ERROR("syntax error in filter command.\n")
407+
PRINT_ERROR("syntax error in filter command.\n");
408408
return;
409409
}
410410

src/state_raw.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ void state_raw()
125125

126126
ret = recvmsg(raw_socket, &msg, 0);
127127
if(ret != sizeof(struct canfd_frame) && ret != sizeof(struct can_frame)) {
128-
PRINT_ERROR("Error reading frame from RAW socket\n")
129-
} else {
128+
PRINT_ERROR("Error reading frame from RAW socket\n");
129+
} else {
130130
/* read timestamp data */
131131
for (cmsg = CMSG_FIRSTHDR(&msg);
132132
cmsg && (cmsg->cmsg_level == SOL_SOCKET);
@@ -209,7 +209,7 @@ void state_raw()
209209
if ( (items < 2) ||
210210
(frame.len > 8) ||
211211
(items != 2 + frame.len)) {
212-
PRINT_ERROR("Syntax error in send command\n")
212+
PRINT_ERROR("Syntax error in send command\n");
213213
return;
214214
}
215215

@@ -274,7 +274,7 @@ void state_raw()
274274
if ( (items < 2) ||
275275
(frame.len > 64) ||
276276
(items != 3 + frame.len)) {
277-
PRINT_ERROR("Syntax error in fdsend command\n")
277+
PRINT_ERROR("Syntax error in fdsend command\n");
278278
return;
279279
}
280280

0 commit comments

Comments
 (0)