candump: checkpatch: fix space and newline usage

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
pull/394/head
Marc Kleine-Budde 2022-12-07 13:14:14 +01:00
parent 34bd45861b
commit 306254b950
1 changed files with 5 additions and 9 deletions

View File

@ -223,7 +223,6 @@ static inline void sprint_timestamp(const char timestamp, const struct timeval *
struct timeval *const last_tv, char *ts_buffer)
{
switch (timestamp) {
case 'a': /* absolute with timestamp */
sprintf(ts_buffer, "(%010lu.%06lu) ", tv->tv_sec, tv->tv_usec);
break;
@ -521,7 +520,6 @@ int main(int argc, char **argv)
addr.can_ifindex = 0; /* any can interface */
if (nptr) {
/* found a ',' after the interface name => check for filters */
/* determine number of filters to alloc the filter space */
@ -755,7 +753,6 @@ int main(int argc, char **argv)
if (cmsg->cmsg_type == SO_TIMESTAMP) {
memcpy(&tv, CMSG_DATA(cmsg), sizeof(tv));
} else if (cmsg->cmsg_type == SO_TIMESTAMPING) {
struct timespec *stamp = (struct timespec *)CMSG_DATA(cmsg);
/*
@ -767,13 +764,13 @@ int main(int argc, char **argv)
*/
tv.tv_sec = stamp[2].tv_sec;
tv.tv_usec = stamp[2].tv_nsec / 1000;
} else if (cmsg->cmsg_type == SO_RXQ_OVFL)
} else if (cmsg->cmsg_type == SO_RXQ_OVFL) {
memcpy(&obj->dropcnt, CMSG_DATA(cmsg), sizeof(__u32));
}
}
/* check for (unlikely) dropped frames on this specific socket */
if (obj->dropcnt != obj->last_dropcnt) {
__u32 frames = obj->dropcnt - obj->last_dropcnt;
if (silent != SILENT_ON)
@ -838,7 +835,6 @@ int main(int argc, char **argv)
printf("%*s", max_devname_len, devname[idx]);
if (extra_msg_info) {
if (msg.msg_flags & MSG_DONTROUTE)
printf (" TX %s", extra_m_info[frame.flags & 3]);
else