Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932521AbcJQCSX (ORCPT ); Sun, 16 Oct 2016 22:18:23 -0400 Received: from szxga01-in.huawei.com ([58.251.152.64]:44041 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932443AbcJQCSL (ORCPT ); Sun, 16 Oct 2016 22:18:11 -0400 Subject: Re: [PATCH 6/8] tools lib bpf: improve warning To: Eric Leblond , References: <20161016211834.11732-1-eric@regit.org> <20161016211834.11732-7-eric@regit.org> CC: , From: "Wangnan (F)" Message-ID: <580434A9.7020104@huawei.com> Date: Mon, 17 Oct 2016 10:17:13 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <20161016211834.11732-7-eric@regit.org> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.111.66.109] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 732 Lines: 28 On 2016/10/17 5:18, Eric Leblond wrote: > Signed-off-by: Eric Leblond Please add some commit messages. Thank you. > --- > tools/lib/bpf/libbpf.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c > index 7cd341e..1fe4532 100644 > --- a/tools/lib/bpf/libbpf.c > +++ b/tools/lib/bpf/libbpf.c > @@ -802,7 +802,8 @@ bpf_object__create_maps(struct bpf_object *obj) > size_t j; > int err = *pfd; > > - pr_warning("failed to create map: %s\n", > + pr_warning("failed to create map (name: '%s'): %s\n", > + obj->maps[i].name, > strerror(errno)); > for (j = 0; j < i; j++) > zclose(obj->maps[j].fd);