From patchwork Sat Nov 2 00:48:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 21317 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f199.google.com (mail-ie0-f199.google.com [209.85.223.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 44B1823908 for ; Sat, 2 Nov 2013 00:48:24 +0000 (UTC) Received: by mail-ie0-f199.google.com with SMTP id qd12sf14451029ieb.6 for ; Fri, 01 Nov 2013 17:48:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:message-id:date:from:user-agent :mime-version:to:cc:subject:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=F6Y8UV2hLu/gGwGEzMPt9LLCB4neDI3Pc2Uzg7MmJA4=; b=XboXDr68Y2NIgbe+fchuA0J4dCr/r/YG3UhLp1U1a/OldjsgcUAxePv8n+btVJOGjN LFfX4QyytxeEBolY2j7nQOaDz3s5rFwAGd8qVREsWQkjv0AJN2wohZO7Cdk8z9B2F5hE cFDLYknp2l/1DEWtbczGrgDk9vNaIjgULjxuBm/DtIlgB3HyeW0xwadT9QhuIzXU4GiE nj3n3fzoQpLU1h3VrPaeCPkIYZqMjiJRWwCEJC/A1+nDALPhmrxmcgDOggyeCNNjQ6Wv rOnpJPsx3FoQYHBU333nNR9Z6aIZpukdWZHyEOG2Gmam+bNAFJhw53GN4H2TbdKzSDeL tCaA== X-Gm-Message-State: ALoCoQk1RxPqxPYN2Evz3q90aC1b5KeBZcN2IOMPWyMvhVlOiNovXvZE/dprIfdSDlXgz3p6FwsZ X-Received: by 10.182.24.3 with SMTP id q3mr1800887obf.6.1383353303477; Fri, 01 Nov 2013 17:48:23 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.2.102 with SMTP id 6ls1555076qet.69.gmail; Fri, 01 Nov 2013 17:48:23 -0700 (PDT) X-Received: by 10.58.39.97 with SMTP id o1mr3627432vek.15.1383353303296; Fri, 01 Nov 2013 17:48:23 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id sw5si1279699veb.99.2013.11.01.17.48.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Nov 2013 17:48:23 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id ia6so3313120vcb.7 for ; Fri, 01 Nov 2013 17:48:23 -0700 (PDT) X-Received: by 10.221.37.9 with SMTP id tc9mr1000725vcb.39.1383353303169; Fri, 01 Nov 2013 17:48:23 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp79675vcz; Fri, 1 Nov 2013 17:48:22 -0700 (PDT) X-Received: by 10.66.142.170 with SMTP id rx10mr5828739pab.117.1383353302221; Fri, 01 Nov 2013 17:48:22 -0700 (PDT) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx.google.com with ESMTPS id gn4si5686824pbc.351.2013.11.01.17.48.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Nov 2013 17:48:22 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.54 is neither permitted nor denied by best guess record for domain of will.newton@linaro.org) client-ip=209.85.220.54; Received: by mail-pa0-f54.google.com with SMTP id fa1so4716359pad.41 for ; Fri, 01 Nov 2013 17:48:21 -0700 (PDT) X-Received: by 10.68.4.197 with SMTP id m5mr5746288pbm.46.1383353301608; Fri, 01 Nov 2013 17:48:21 -0700 (PDT) Received: from localhost.localdomain ([63.239.94.10]) by mx.google.com with ESMTPSA id xv2sm13432928pbb.39.2013.11.01.17.48.20 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 01 Nov 2013 17:48:20 -0700 (PDT) Message-ID: <52744BD2.7090303@linaro.org> Date: Fri, 01 Nov 2013 17:48:18 -0700 From: Will Newton User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8 MIME-Version: 1.0 To: gdb-patches@sourceware.org CC: Patch Tracking Subject: [PATCH] gdb/arm-tdep.c: Use filtered output in arm_print_float_info. X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: will.newton@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , gdb/ChangeLog: 2013-11-01 Will Newton PR gdb/7670 * arm-tdep.c (print_fpu_flags): Use filtered output routines. (arm_print_float_info): Likewise. --- gdb/arm-tdep.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 7c78a61..1ed21ea 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -3889,19 +3889,19 @@ arm_frame_align (struct gdbarch *gdbarch, CORE_ADDR sp) } static void -print_fpu_flags (int flags) +print_fpu_flags (struct ui_file *file, int flags) { if (flags & (1 << 0)) - fputs ("IVO ", stdout); + fputs_filtered ("IVO ", file); if (flags & (1 << 1)) - fputs ("DVZ ", stdout); + fputs_filtered ("DVZ ", file); if (flags & (1 << 2)) - fputs ("OFL ", stdout); + fputs_filtered ("OFL ", file); if (flags & (1 << 3)) - fputs ("UFL ", stdout); + fputs_filtered ("UFL ", file); if (flags & (1 << 4)) - fputs ("INX ", stdout); - putchar ('\n'); + fputs_filtered ("INX ", file); + fputc_filtered ('\n', file); } /* Print interesting information about the floating point processor @@ -3915,15 +3915,15 @@ arm_print_float_info (struct gdbarch *gdbarch, struct ui_file *file, type = (status >> 24) & 127; if (status & (1 << 31)) - printf (_("Hardware FPU type %d\n"), type); + fprintf_filtered (file, _("Hardware FPU type %d\n"), type); else - printf (_("Software FPU type %d\n"), type); + fprintf_filtered (file, _("Software FPU type %d\n"), type); /* i18n: [floating point unit] mask */ - fputs (_("mask: "), stdout); - print_fpu_flags (status >> 16); + fputs_filtered (_("mask: "), file); + print_fpu_flags (file, status >> 16); /* i18n: [floating point unit] flags */ - fputs (_("flags: "), stdout); - print_fpu_flags (status); + fputs_filtered (_("flags: "), file); + print_fpu_flags (file, status); } /* Construct the ARM extended floating point type. */