]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: sched: Remove newline at the end of a netlink error message
authorGal Pressman <gal@nvidia.com>
Wed, 26 Feb 2025 09:39:03 +0000 (11:39 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 Feb 2025 02:11:38 +0000 (18:11 -0800)
Netlink error messages should not have a newline at the end of the
string.

Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Link: https://patch.msgid.link/20250226093904.6632-5-gal@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sched/sch_qfq.c

index 6a07cdbdb9e12ea9ffa074f00314db49eff3a3d4..2cfbc977fe6d0bc33d8a3379551779c9e847a0f1 100644 (file)
@@ -447,7 +447,7 @@ static int qfq_change_class(struct Qdisc *sch, u32 classid, u32 parentid,
 
        if (q->wsum + delta_w > QFQ_MAX_WSUM) {
                NL_SET_ERR_MSG_FMT_MOD(extack,
-                                      "total weight out of range (%d + %u)\n",
+                                      "total weight out of range (%d + %u)",
                                       delta_w, q->wsum);
                return -EINVAL;
        }