From patchwork Fri Sep 25 07:05:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Vecera X-Patchwork-Id: 260229 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7A0A8C4727E for ; Fri, 25 Sep 2020 07:05:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 37968221EB for ; Fri, 25 Sep 2020 07:05:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="e3WDBWj8" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727379AbgIYHFf (ORCPT ); Fri, 25 Sep 2020 03:05:35 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:53730 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727135AbgIYHFe (ORCPT ); Fri, 25 Sep 2020 03:05:34 -0400 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1601017534; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8cXiPntWmZ8U5pOfeuPcqsPVgWvTJduclrOMDODyzCA=; b=e3WDBWj8grb7ijUX1lP0LADeCRPFHhPVnD/f+uvHk+rU+grK2NeNGfOmNSLDYjsTXglk6Z 4fit24pAlUf1afMeFT7xHj68UB3Je3nz7X+CbRdbzsjttvP30x8JKCUQdSMTPD2kCMfaBt uKPNfTWyfcCpXP6lo77DnKIXDc/rodA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-35-qjz-2WqDPuiXDiEe_TllPg-1; Fri, 25 Sep 2020 03:05:31 -0400 X-MC-Unique: qjz-2WqDPuiXDiEe_TllPg-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C4B0518B9F40; Fri, 25 Sep 2020 07:05:30 +0000 (UTC) Received: from ceranb.redhat.com (unknown [10.40.195.153]) by smtp.corp.redhat.com (Postfix) with ESMTP id D708C3C89; Fri, 25 Sep 2020 07:05:29 +0000 (UTC) From: Ivan Vecera To: netdev@vger.kernel.org Cc: Michal Kubecek Subject: [PATCH ethtool 2/2] netlink: fix copy-paste error in rtm_link_summary() Date: Fri, 25 Sep 2020 09:05:27 +0200 Message-Id: <20200925070527.1001190-2-ivecera@redhat.com> In-Reply-To: <20200925070527.1001190-1-ivecera@redhat.com> References: <20200925070527.1001190-1-ivecera@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Fixes: bdfffab54933 ("netlink: message format descriptions for rtnetlink") Cc: Michal Kubecek Signed-off-by: Ivan Vecera --- netlink/prettymsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlink/prettymsg.c b/netlink/prettymsg.c index 9e62bebe615e..f992dcaf071f 100644 --- a/netlink/prettymsg.c +++ b/netlink/prettymsg.c @@ -202,7 +202,7 @@ static void rtm_link_summary(const struct ifinfomsg *ifinfo) printf(" ifindex=%d", ifinfo->ifi_index); if (ifinfo->ifi_flags) printf(" flags=0x%x", ifinfo->ifi_flags); - if (ifinfo->ifi_flags) + if (ifinfo->ifi_change) printf(" change=0x%x", ifinfo->ifi_change); }