lkml.org 
[lkml]   [2016]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 01/10] perf, tools: Factor out scale conversion code
> I tools/ specifically, I try to use the same constructs, list.h, rbtree,
> WARN_, pr_, etc, not panic()'ing, etc.
>
> In this specific case, doing a:
>
> printf("life is hard, I give up"); exit(1);

Ok that would be just what a wrapper does, only open coded.

How about we just add helpers for these cases?

xstrdup
xmalloc
xasprintf

etc.

-Andi

\
 
 \ /
  Last update: 2016-10-14 18:37    [W:0.068 / U:2.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site