From patchwork Tue Feb 4 02:54:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josh Kunz X-Patchwork-Id: 1233122 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20161025 header.b=NCxNYYC+; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48BTqh2SX6z9sWr for ; Tue, 4 Feb 2020 13:56:48 +1100 (AEDT) Received: from localhost ([::1]:52192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyoOL-0005R3-5d for incoming@patchwork.ozlabs.org; Mon, 03 Feb 2020 21:56:46 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:60929) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <38dw4XgMKCoYtu9qyyqvo.myw0ow4-no5ovxyxqx4.y1q@flex--jkz.bounces.google.com>) id 1iyoMN-0002bm-UX for qemu-devel@nongnu.org; Mon, 03 Feb 2020 21:54:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <38dw4XgMKCoYtu9qyyqvo.myw0ow4-no5ovxyxqx4.y1q@flex--jkz.bounces.google.com>) id 1iyoMM-0003Xi-Vt for qemu-devel@nongnu.org; Mon, 03 Feb 2020 21:54:43 -0500 Received: from mail-pf1-x44a.google.com ([2607:f8b0:4864:20::44a]:38179) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <38dw4XgMKCoYtu9qyyqvo.myw0ow4-no5ovxyxqx4.y1q@flex--jkz.bounces.google.com>) id 1iyoMM-0003Sd-PN for qemu-devel@nongnu.org; Mon, 03 Feb 2020 21:54:42 -0500 Received: by mail-pf1-x44a.google.com with SMTP id 203so1977765pfx.5 for ; Mon, 03 Feb 2020 18:54:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=SpvOvcICtqptiM7uvVhQLga1sT0u1zsTnuHopeVscGY=; b=NCxNYYC+/xwn6BOTMOY79tZ8p3knIB26MAbp/fFkbzWPJKbHDaXVZmVv1q0IbPxE7G XcBaBqUQTiYUrK63jQu1y4YSXIfNLeOU7jZI5fR/FdwqFWdfwWZ4tTmNEKnVuqMwa5WL WH0dNVgOyaDEY/+GJ56t2E+EBVBpRNX/pg0+d9FGwLk8hG6KNR1z1HrIBwGi1sEnH7zh EwEldTTLRXOKo8sH0RzRC9vcWDetDY4TauJFE5RBoXhvIOA101C5NwCcBhj08ncSOh4D A+NmJzlbgtUbj8L2lawPVN6sDYCRAH/q7p4yw1Oufe4FMmwTgUlCsMUY7Qsof/rzMJI+ Qn6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=SpvOvcICtqptiM7uvVhQLga1sT0u1zsTnuHopeVscGY=; b=EOACpp8Zq5rLOc4jVhcm/yg7T5uTpFnlB7L/gjtXvWv6/SCNQSr4+Yeml1ixjR7/fH h0x2elJVE5YR0VmT4yKYOhbwHs9jMMYnVHNa8Y107aI66scR/qPUWqzKXo8HXp06VnOz 10pdy8YCKDqDtco5MdYdoHG6xi4eym9nVwJOxATuEOhn4GN8UWlF+RjzPc9UK1A01dH7 51MhYW+mn0AeVYE9E+Y2ifvMuErJ6IaVQuI2HdQZ6aG+LO6/BLYUilXJxjGRC3nFPu8L dae6bPCF8XADOsG1o3kNTzDq/+1o6pK8yDXzfm6TugUPVorcQd9F2rmPOtUqHXhyAfQ/ iMVw== X-Gm-Message-State: APjAAAVfWNR85eyoyt23C1h7AJApw1Zxu/Fpw+foUgykWf6JcxggTQ1R b32UB0TSPp+pE2suaarPCx4IDVymMjMlUutZqFeytcUkCdiXyKEhD/CbuLTwDaHY5MHCQuDpu8z jODRvFogZ0vA7De35zP6iywPMXxALH2UF6PFpZrRMhMLEBaYZ+NGw X-Google-Smtp-Source: APXvYqyk+028ZOpfUPNtq4K1JELkY9So3R48ZvuLlrmh/lD3kb+7oKCvJoAhmOSSrKODGi2KGB/j66o= X-Received: by 2002:a63:de4c:: with SMTP id y12mr28194164pgi.107.1580784881405; Mon, 03 Feb 2020 18:54:41 -0800 (PST) Date: Mon, 3 Feb 2020 18:54:15 -0800 In-Reply-To: <20200204025416.111409-1-jkz@google.com> Message-Id: <20200204025416.111409-4-jkz@google.com> Mime-Version: 1.0 References: <20200204025416.111409-1-jkz@google.com> X-Mailer: git-send-email 2.25.0.341.g760bfbb309-goog Subject: [PATCH v3 3/4] linux-user: remove gemu_log from the linux-user tree From: Josh Kunz To: qemu-devel@nongnu.org Cc: riku.voipio@iki.fi, laurent@vivier.eu, alex.bennee@linaro.org, armbru@redhat.com, imp@bsdimp.com, Josh Kunz X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::44a X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Now that all uses have been migrated to `qemu_log' it is no longer needed. Reviewed-by: Laurent Vivier Signed-off-by: Josh Kunz --- linux-user/main.c | 9 --------- linux-user/qemu.h | 1 - 2 files changed, 10 deletions(-) diff --git a/linux-user/main.c b/linux-user/main.c index 8f1d07cdd6..22578b1633 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -112,15 +112,6 @@ const char *qemu_uname_release; by remapping the process stack directly at the right place */ unsigned long guest_stack_size = 8 * 1024 * 1024UL; -void gemu_log(const char *fmt, ...) -{ - va_list ap; - - va_start(ap, fmt); - vfprintf(stderr, fmt, ap); - va_end(ap); -} - #if defined(TARGET_I386) int cpu_get_pic_interrupt(CPUX86State *env) { diff --git a/linux-user/qemu.h b/linux-user/qemu.h index 2421dc7afd..792c74290f 100644 --- a/linux-user/qemu.h +++ b/linux-user/qemu.h @@ -211,7 +211,6 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, abi_long arg2, abi_long arg3, abi_long arg4, abi_long arg5, abi_long arg6, abi_long arg7, abi_long arg8); -void gemu_log(const char *fmt, ...) GCC_FMT_ATTR(1, 2); extern __thread CPUState *thread_cpu; void cpu_loop(CPUArchState *env); const char *target_strerror(int err);