Skip to content

Commit 2f34b32

Browse files
author
Gerrit Renker
committed
dccp: cosmetics - warning format
This omits the redundant "DCCP:" in warning messages, since DCCP_WARN() already echoes the function name, avoiding messages like kernel: [10988.766503] dccp_close: DCCP: ABORT -- 209 bytes unread Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
1 parent ecdfbda commit 2f34b32

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎net/dccp/input.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ static int dccp_check_seqno(struct sock *sk, struct sk_buff *skb)
259259
sysctl_dccp_sync_ratelimit)))
260260
return 0;
261261

262-
DCCP_WARN("DCCP: Step 6 failed for %s packet, "
262+
DCCP_WARN("Step 6 failed for %s packet, "
263263
"(LSWL(%llu) <= P.seqno(%llu) <= S.SWH(%llu)) and "
264264
"(P.ackno %s or LAWL(%llu) <= P.ackno(%llu) <= S.AWH(%llu), "
265265
"sending SYNC...\n", dccp_packet_name(dh->dccph_type),

‎net/dccp/proto.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ void dccp_close(struct sock *sk, long timeout)
944944

945945
if (data_was_unread) {
946946
/* Unread data was tossed, send an appropriate Reset Code */
947-
DCCP_WARN("DCCP: ABORT -- %u bytes unread\n", data_was_unread);
947+
DCCP_WARN("ABORT with %u bytes unread\n", data_was_unread);
948948
dccp_send_reset(sk, DCCP_RESET_CODE_ABORTED);
949949
dccp_set_state(sk, DCCP_CLOSED);
950950
} else if (sock_flag(sk, SOCK_LINGER) && !sk->sk_lingertime) {

0 commit comments

Comments
 (0)