From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5588 invoked by alias); 13 Feb 2008 10:18:24 -0000 Received: (qmail 5578 invoked by uid 22791); 13 Feb 2008 10:18:23 -0000 X-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_36,J_CHICKENPOX_53,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 13 Feb 2008 10:18:04 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m1DAI1No028935 for ; Wed, 13 Feb 2008 05:18:01 -0500 Received: from pobox-2.corp.redhat.com (pobox-2.corp.redhat.com [10.11.255.15]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m1DAI1Ib014427; Wed, 13 Feb 2008 05:18:01 -0500 Received: from localhost.localdomain (vpn-6-27.fab.redhat.com [10.33.6.27]) by pobox-2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m1DAI0IR025389; Wed, 13 Feb 2008 05:18:00 -0500 Message-ID: <47B2C3D7.7080702@redhat.com> Date: Wed, 13 Feb 2008 10:18:00 -0000 From: Phil Muldoon User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: Andrew Cagney CC: frysk@sourceware.org Subject: Re: [SCM] master: Add frysk.rsl loggin. References: <20080212200324.2256.qmail@sourceware.org> <47B2102D.2030804@redhat.com> In-Reply-To: <47B2102D.2030804@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2008-q1/txt/msg00066.txt.bz2 Andrew Cagney wrote: > Phil, > > There's a less leaky way to write this (if a specific sequence is > missing in Log, just add it). Ok on the adding part, this will not work. Will add later: finest.log(this, "peek'ed() 0x", ((long) (buffer[0] & 0xff)), " from address 0x", address, " offset 0x", offset, " from file: " , metaLine.name); gets: gcj -C -fsource=1.4 -d classes -g -O -g -classpath ../../frysk/frysk-core:.:../frysk-sys/frysk-sys.jar:../frysk-imports/jline.jar:../frysk-imports/antlr.jar:../frysk-imports/junit.jar:../frysk-imports/getopt.jar:../frysk-imports/jdom.jar:../frysk-imports/cdtparser.jar -Wextraneous-semicolon \ @./files-java.list \ 2>&1 | tee frysk-core.log ../../frysk/frysk-core/frysk/proc/dead/CorefileByteBuffer.java:128: error: The method log(Object, String, Object, String, long, String, long, String, int, String) in the type Log is not applicable for the arguments (CorefileByteBuffer, String, long, String, long, String, long, String, String) finest.log(this, But what I really want is a hex string, converted by long. I do not want to convert every single peek() call from decimal to hex in my head. I guess I could do, Object, String, String, String, String ... and convert each Long in the log call, but the end log result would be just as messy as concating strings together. Or a format switch? Or something else? Regards Phil