Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2666855pxa; Mon, 17 Aug 2020 16:02:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQR92ibYbAvn71ukzzkGi/egNuSBXiO6YsEN19Y0P+QITqSZinOFVqkYCXaQ90WN2UtdsE X-Received: by 2002:a50:fb94:: with SMTP id e20mr17454660edq.103.1597705339219; Mon, 17 Aug 2020 16:02:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597705339; cv=none; d=google.com; s=arc-20160816; b=Ja6TwEVQDL3e/yNkK8rWCcmr5nr0gosm4sL7/RGnM+Srsv/P+pjs2CaoP0XB+/kyEI /ONtU2jYltUZ9oPNnweBIGXzCnxqqwG+Go2w5PV1aqwFe7WCLI4/Yw0TjEMGMGj7rDpo QVNXKDt3CzvVfJaVy96DhlCNUIWu95oWoTAThv3IBxc8JdIgaN9D48P9C9zYcj7fsruf CPTgIyO+CdSW0BHFCcwKvEkuycpGQ5j7sqsKlcUYkr/x6PnCB5kEJ9rct2uGD9gyjjcv 7lVYQyY5oodQCvfagYWX8vphp2N6X5a14dR5PcqP3nA5loftQqeioHbiwlmN/f61gt9O sbmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=sZfjcuY3ET6KjajkQkKEOmAhEG2PZKNSiWaJZrOVbUE=; b=Lh5AO/gY/tYkDamACsWF5K2qs3ScxHU+7L9tmb479XA1sSLu/TgCj51rrCQ753Kpoc 6QzR3vIBB7sDt3qBFbXSVTV9Ae7HAeruARPns+IBdaMS9iTY5crSKGKoE4eCdzXNsPJB jEJ7Xmj6A3KBIkWO7QdTDzVVXZGAUnIpaEuEI4rwQxpYqIT9Vnoj1sxc8Xh6covbolBZ 5msw7KpH/dqlg5HMNiG6/JkzTNA+6KcRYZjU79yKn6iLc6cGlTzTHRn8Nh1uNMknd3Dr 3n0RVIpabUVs5r6WgXG/6mIC1F7S3ugLe+oBZWu8G3jyitUBHHlvvO+R0eKo3Rbv6kr2 kUHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=qvZfWvIj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j8si11437152edk.610.2020.08.17.16.01.55; Mon, 17 Aug 2020 16:02:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=qvZfWvIj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727010AbgHQU7S (ORCPT + 99 others); Mon, 17 Aug 2020 16:59:18 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:36776 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726228AbgHQU7R (ORCPT ); Mon, 17 Aug 2020 16:59:17 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 07HKwfO3028875; Mon, 17 Aug 2020 15:58:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1597697921; bh=sZfjcuY3ET6KjajkQkKEOmAhEG2PZKNSiWaJZrOVbUE=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=qvZfWvIjepWO8bOVGrRdhY0HfVM2GRMNoTXv1IuKSV5PLpSydT1/oqq9CtMKbk0b0 lvSsBmyWNzmhiANo7LNagRcFeaj8CRGDXSWyxyBpsHyyM4WARy0ICV74XJzEdQ0WOR jMXf7apDG4h0b6wOF6RqrEaKx+F4+Uw/jUNgSFps= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 07HKwfsm116665 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 17 Aug 2020 15:58:41 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 17 Aug 2020 15:58:41 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Mon, 17 Aug 2020 15:58:41 -0500 Received: from [10.250.227.175] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 07HKwdLv013286; Mon, 17 Aug 2020 15:58:40 -0500 Subject: Re: [net-next iproute2 PATCH v4 1/2] iplink: hsr: add support for creating PRP device similar to HSR To: Stephen Hemminger CC: , , , , , , , References: <20200806203712.2712-1-m-karicheri2@ti.com> <20200806203712.2712-2-m-karicheri2@ti.com> <20200816154608.0fe0917b@hermes.lan> From: Murali Karicheri Message-ID: <682a636a-a42b-f40d-853c-3ae7d3c4bd82@ti.com> Date: Mon, 17 Aug 2020 16:58:39 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200816154608.0fe0917b@hermes.lan> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/16/20 6:46 PM, Stephen Hemminger wrote: > On Thu, 6 Aug 2020 16:37:11 -0400 > Murali Karicheri wrote: > >> + > >> + print_int(PRINT_ANY, >> + "proto", >> + "proto %d ", >> + rta_getattr_u8(tb[IFLA_HSR_PROTOCOL])); > > Since this unsigned value, you probably want to use print_uint, or print_hhu. > Also please put as many arguments on one line that will fit in 80 (to 90) characters. > > if (tb[IFLA_HSR_PROTOCOL]) > print_hhu(PRINT_ANY, "proto", "proto %hhu ", > rta_getattr_u8(tb[IFLA_HSR_PROTOCOL])); > Ok. Will send v5 shortly for this. -- Murali Karicheri Texas Instruments