Re: [RFC PATCH v4 05/29] bpf tools: Allow caller to set printing function

2015-05-29 Thread Namhyung Kim
Hi Wang, On Wed, May 27, 2015 at 05:19:40AM +, Wang Nan wrote: > By libbpf_set_print(), users of libbpf are allowed to register he/she > own debug, info and warning printing functions. Libbpf will use those > functions to print messages. If not provided, default info and warning > printing fun

[RFC PATCH v4 05/29] bpf tools: Allow caller to set printing function

2015-05-26 Thread Wang Nan
By libbpf_set_print(), users of libbpf are allowed to register he/she own debug, info and warning printing functions. Libbpf will use those functions to print messages. If not provided, default info and warning printing functions are fprintf(stderr, ...); defailt debug printing is NULL. This API i