All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Petr Machata <petrm@nvidia.com>
Cc: <netdev@vger.kernel.org>, <dsahern@gmail.com>,
	Ido Schimmel <idosch@nvidia.com>
Subject: Re: [PATCH iproute2-next v3 2/6] json_print: Add print_tv()
Date: Tue, 16 Mar 2021 09:59:21 -0700	[thread overview]
Message-ID: <20210316095921.175fac07@hermes.local> (raw)
In-Reply-To: <ef15d0e8dc8b58f93537116dd2a43f7d188a8fb6.1615889875.git.petrm@nvidia.com>

On Tue, 16 Mar 2021 11:20:12 +0100
Petr Machata <petrm@nvidia.com> wrote:

> Add a helper to dump a timeval. Print by first converting to double and
> then dispatching to print_color_float().
> 
> Signed-off-by: Petr Machata <petrm@nvidia.com>
> ---
>  include/json_print.h |  1 +
>  lib/json_print.c     | 13 +++++++++++++
>  2 files changed, 14 insertions(+)
> 
> diff --git a/include/json_print.h b/include/json_print.h
> index 6fcf9fd910ec..63eee3823fe4 100644
> --- a/include/json_print.h
> +++ b/include/json_print.h
> @@ -81,6 +81,7 @@ _PRINT_FUNC(0xhex, unsigned long long)
>  _PRINT_FUNC(luint, unsigned long)
>  _PRINT_FUNC(lluint, unsigned long long)
>  _PRINT_FUNC(float, double)
> +_PRINT_FUNC(tv, struct timeval *)

This 

Make it const please?

  reply	other threads:[~2021-03-16 17:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-16 10:20 [PATCH iproute2-next v3 0/6] ip: nexthop: Support resilient groups Petr Machata
2021-03-16 10:20 ` [PATCH iproute2-next v3 1/6] nexthop: Synchronize uAPI files Petr Machata
2021-03-16 10:20 ` [PATCH iproute2-next v3 2/6] json_print: Add print_tv() Petr Machata
2021-03-16 16:59   ` Stephen Hemminger [this message]
2021-03-17 12:27     ` Petr Machata
2021-03-16 10:20 ` [PATCH iproute2-next v3 3/6] nexthop: Extract a helper to parse a NH ID Petr Machata
2021-03-16 10:20 ` [PATCH iproute2-next v3 4/6] nexthop: Add ability to specify group type Petr Machata
2021-03-16 10:20 ` [PATCH iproute2-next v3 5/6] nexthop: Add support for resilient nexthop groups Petr Machata
2021-03-16 10:20 ` [PATCH iproute2-next v3 6/6] nexthop: Add support for nexthop buckets Petr Machata

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=20210316095921.175fac07@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=dsahern@gmail.com \
    --cc=idosch@nvidia.com \
    --cc=netdev@vger.kernel.org \
    --cc=petrm@nvidia.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.