Re: [PATCH net-next 09/12] tools: bpftool: turn err() and info() macros into functions

2017-11-03 Thread Quentin Monnet
2017-11-002 17:59 UTC-0700 ~ Joe Perches > On Mon, 2017-10-23 at 09:24 -0700, Jakub Kicinski wrote: >> From: Quentin Monnet >> >> Turn err() and info() macros into functions. >> >> In order to avoid naming conflicts with variables in the code, rename >> them as p_err() and p_info() respectively.

Re: [PATCH net-next 09/12] tools: bpftool: turn err() and info() macros into functions

2017-11-02 Thread Joe Perches
On Mon, 2017-10-23 at 09:24 -0700, Jakub Kicinski wrote: > From: Quentin Monnet > > Turn err() and info() macros into functions. > > In order to avoid naming conflicts with variables in the code, rename > them as p_err() and p_info() respectively. > > The behavior of these functions is similar

Re: [PATCH net-next 09/12] tools: bpftool: turn err() and info() macros into functions

2017-10-23 Thread Daniel Borkmann
On 10/23/2017 06:24 PM, Jakub Kicinski wrote: From: Quentin Monnet Turn err() and info() macros into functions. In order to avoid naming conflicts with variables in the code, rename them as p_err() and p_info() respectively. The behavior of these functions is similar to the one of the macros

[PATCH net-next 09/12] tools: bpftool: turn err() and info() macros into functions

2017-10-23 Thread Jakub Kicinski
From: Quentin Monnet Turn err() and info() macros into functions. In order to avoid naming conflicts with variables in the code, rename them as p_err() and p_info() respectively. The behavior of these functions is similar to the one of the macros for plain output. However, when JSON output is r