Re: [PATCH 2/3] fixup! perf: introduce errno_to_name() function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Em Thu, Dec 07, 2017 at 09:37:17AM +0100, Hendrik Brueckner escreveu:
> Hi Arnaldo,
> 
> just looking through my posting and just need a fixup for one hunk.  Please
> let me know whether I shall re-post the series again.  Sorry for this
> inconvenience.

NP, in these cases please resend the affected patch with a v2 in the
subject line, i.e.:

Subject: [PATCH 2/3 v2] perf: introduce errno_to_name() function

Some other issues with that subject line, please check the differences:

Subject: [PATCH 2/3 v2] perf trace: Introduce errno_to_name()

Regards,

- Arnaldo
 
> On Thu, Dec 07, 2017 at 09:28:00AM +0100, Hendrik Brueckner wrote:
> > --- a/tools/perf/builtin-trace.c
> > +++ b/tools/perf/builtin-trace.c
> [...]
> > @@ -1659,6 +1658,18 @@ static int trace__fprintf_callchain(struct trace *trace, struct perf_sample *sam
> >  	return sample__fprintf_callchain(sample, 38, print_opts, &callchain_cursor, trace->output);
> >  }
> > 
> > +static const char *errno_to_name(int err)
> > +{
> > +	switch (err) {
> > +#define ERRNO_NAME_MAP(_err, _num) case _num: return #_err;
> > +	ALL_ERRNO_NAME_MAPPINGS
> > +#undef ONE_ERRNO_NAME
> 
> 
> diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
> index b7aef0f..04af6a1 100644
> --- a/tools/perf/builtin-trace.c
> +++ b/tools/perf/builtin-trace.c
> @@ -1663,7 +1663,7 @@ static const char *errno_to_name(int err)
>  	switch (err) {
>  #define ERRNO_NAME_MAP(_err, _num) case _num: return #_err;
>  	ALL_ERRNO_NAME_MAPPINGS
> -#undef ONE_ERRNO_NAME
> +#undef ERRNO_NAME_MAP
>  	default:
>  		return "(unknown)";
>  		break;
--
To unsubscribe from this list: send the line "unsubscribe linux-s390" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux