Date: Sat, 2 Apr 2016 17:11:20 -0700 From: Conrad Meyer <cem@FreeBSD.org> To: Warner Losh <imp@freebsd.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r297331 - head/sbin/devd Message-ID: <CAG6CVpWOnycSkWFZWNhEB5mJAFvtTp0BgpTxim5kRV3o66M23A@mail.gmail.com> In-Reply-To: <201603280422.u2S4MMRH012240@repo.freebsd.org> References: <201603280422.u2S4MMRH012240@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Should this be: On Sun, Mar 27, 2016 at 9:22 PM, Warner Losh <imp@freebsd.org> wrote: > Author: imp > Date: Mon Mar 28 04:22:22 2016 > New Revision: 297331 > URL: https://svnweb.freebsd.org/changeset/base/297331 > ... > @@ -793,10 +793,15 @@ process_event(char *buffer) > devdlog(LOG_INFO, "Processing event '%s'\n", buffer); > type = *buffer++; > cfg.push_var_table(); > + // $* is the entire line > + cfg.set_variable("*", buffer - 1); > + // $_ is the entire line without the initial character > + cfg.set_variable("_", buffer - 1); 'buffer', not 'buffer - 1'? Best, Conrad
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG6CVpWOnycSkWFZWNhEB5mJAFvtTp0BgpTxim5kRV3o66M23A>