Netdev Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Justin Iurman <justin.iurman@uliege.be>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH iproute2-next 1/3] Add, show, link, remove IOAM namespaces and schemas
Date: Fri, 23 Jul 2021 07:58:04 -0700	[thread overview]
Message-ID: <20210723075804.1387e789@hermes.local> (raw)
In-Reply-To: <20210723144802.14380-2-justin.iurman@uliege.be>

On Fri, 23 Jul 2021 16:48:00 +0200
Justin Iurman <justin.iurman@uliege.be> wrote:

> +		sprintf(data, "0x%" PRIx32,
> +			(uint32_t)rta_getattr_u32(attrs[IOAM6_ATTR_NS_DATA]));
> +
> +		print_string(PRINT_ANY, "data", ", data %s", data)

The json_print has ability to handle hex already
Why not
	print_hex(PRINT_ANY, "data", ", data %#x",
		rta_getattr_u32(...


  reply	other threads:[~2021-07-23 14:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-23 14:47 [PATCH iproute2-next 0/3] Provide support for IOAM Justin Iurman
2021-07-23 14:48 ` [PATCH iproute2-next 1/3] Add, show, link, remove IOAM namespaces and schemas Justin Iurman
2021-07-23 14:58   ` Stephen Hemminger [this message]
2021-07-23 15:07     ` Justin Iurman
2021-07-23 14:59   ` Stephen Hemminger
2021-07-23 15:00     ` Stephen Hemminger
2021-07-23 14:48 ` [PATCH iproute2-next 2/3] New IOAM6 encap type for routes Justin Iurman
2021-07-23 14:48 ` [PATCH iproute2-next 3/3] IOAM man8 Justin Iurman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210723075804.1387e789@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=justin.iurman@uliege.be \
    --cc=netdev@vger.kernel.org \
    --subject='Re: [PATCH iproute2-next 1/3] Add, show, link, remove IOAM namespaces and schemas' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).