From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22228 invoked by alias); 7 Jan 2009 23:54:06 -0000 Received: (qmail 22215 invoked by uid 22791); 7 Jan 2009 23:54:05 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-gx0-f11.google.com (HELO mail-gx0-f11.google.com) (209.85.217.11) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Jan 2009 23:54:00 +0000 Received: by gxk4 with SMTP id 4so188327gxk.2 for ; Wed, 07 Jan 2009 15:53:57 -0800 (PST) Received: by 10.150.121.2 with SMTP id t2mr799554ybc.33.1231372437754; Wed, 07 Jan 2009 15:53:57 -0800 (PST) Received: by 10.151.118.18 with HTTP; Wed, 7 Jan 2009 15:53:57 -0800 (PST) Message-ID: <8fb5fa2d0901071553g5d2e2d99uc6b02a26e80aea36@mail.gmail.com> Date: Wed, 07 Jan 2009 23:54:00 -0000 From: "Buddy Lumpkin" To: "Frank Ch. Eigler" , systemtap@sources.redhat.com Subject: Re: Debug code enabled on Systemtap verison: 0.8? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8fb5fa2d0901071236s6f00a2c4t49647ca61680ee19@mail.gmail.com> <8fb5fa2d0901071248i37147860r3ba3eaae93cff9f7@mail.gmail.com> X-IsSubscribed: yes Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2009-q1/txt/msg00060.txt.bz2 Why not turn that behavior on with a command line option? As an example, You can turn on all kinds of convenient, additional behavior in perl to enhance the ability to do one liners by adding command line switches. --Buddy On Wed, Jan 7, 2009 at 1:40 PM, Frank Ch. Eigler wrote: > "Buddy Lumpkin" writes: > >> Sorry if this is a duplicate, I already sent this once to >> systemtap@sourceware.org, re-sending to systemtap@sources.redhat.com. > > (They are equivalent aliases.) > > >> This is the extra line that is printed: >> node_addr=0x0 > > This is a consequence of feature sources.redhat.com/PR5686. > > >> There is a global variable called node_addr in my script. A small >> adjustment to some code made the message go away: >> >> this causes the message to occur: >> >> if ((node_addr = node_addr(node_id + 1))) >> [...] > > In this case, the node_addr variable is not read, so it is > automagically printed. (The value of the node_addr() function is used > as an rvalue for the if expression.) > >> Written this way, it goes away: >> >> node_addr = node_addr(node_id + 1); >> if (node_addr) >> [...] > > In this case, the node_addr variable is read, so the > automagic global printing is not active. > > - FChE >