From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgwym03.jp.fujitsu.com (mgwym03.jp.fujitsu.com [211.128.242.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 61385223FCF4C for ; Thu, 15 Mar 2018 23:49:06 -0700 (PDT) Received: from m3050.s.css.fujitsu.com (msm.b.css.fujitsu.com [10.134.21.208]) by yt-mxoi2.gw.nic.fujitsu.com (Postfix) with ESMTP id 3EE79AC01E2 for ; Fri, 16 Mar 2018 15:55:25 +0900 (JST) Date: Fri, 16 Mar 2018 15:55:18 +0900 From: Yasunori Goto Subject: Re: [RFC PATCH v4] ndctl: monitor: add ndctl monitor daemon In-Reply-To: References: <20180313113308.2136-1-qi.fuli@jp.fujitsu.com> Message-Id: <20180316155515.7293.E1E9C6FF@jp.fujitsu.com> MIME-Version: 1.0 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: Dan Williams Cc: linux-nvdimm List-ID: Hi, > > +static void log_syslog(struct ndctl_ctx *ctx, int priority, const char *file, > > + int line, const char *fn, const char *format, va_list args) > > +{ > > + char *buf = (char *)malloc(BUF_SIZE); > > + vsnprintf(buf, BUF_SIZE, format, args); > > + syslog(priority, "%s", buf); > > + free(buf); > > +} > > This seems to be reinventing setting up a log file that I'm sure we > could borrow or link to... > > ndctl borrows heavily from git, and git does logging in it's daemon.c, > I'd be happier if you copied that. Maybe silly question...., but is it OK about OSS lisence? In my understanding, basically the lisence of git is GPL2, LGPL is used just for use xdiff/ or some libc code in git.... https://github.com/git/git/blob/master/COPYING https://github.com/git/git/blob/master/LGPL-2.1 However, the lisence of ndctl is LGPL2.1 https://github.com/pmem/ndctl/blob/master/COPYING If we copied from git to ndctl, then I suppose that ndctl daemon may have to use GPL2 rather than LGPL2.1, right? Bye, _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm