Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jgSek-0005fW-RU for mharc-qemu-trivial@gnu.org; Wed, 03 Jun 2020 08:38:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jgSej-0005eB-Um; Wed, 03 Jun 2020 08:38:05 -0400 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:38172) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jgSej-0006Od-3z; Wed, 03 Jun 2020 08:38:05 -0400 Received: by mail-wr1-x441.google.com with SMTP id e1so2197099wrt.5; Wed, 03 Jun 2020 05:38:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dghhn3CcrA48NqWRKIW/ElguQkiStlFvKybxs/jclLk=; b=vIcoBpgRnNYQXxduYDU/yigJ9tzHLJzZ/hLoGuohdmEGk+EdhMJDm1oQXsu1imEcu3 N7xNlVHuUtsqHlOsRpxhZ5hKr0MOcwTBS+ABkpVOiWu/fHzfT9jgJyv+OYCU+YsrWMDG CeoJyP2ooACTiq7B1yrB8mIOMrljJhgSidngqliKelLuZ1J4tr+QZE4GSWOfuRKIolh/ hBWRjEwGO6fVwhPQBebmyZl6ctNhxzmCZy/VOAgxblljsXrcyXpVPy1p9EAbRY8FFMLB hjJlBoeZMhMPfjF5NlE6JwHaObRn2Gy6gNpi65YPNXJ8H9iTRC1CbxtoJhQ/uembp7xm dFWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=dghhn3CcrA48NqWRKIW/ElguQkiStlFvKybxs/jclLk=; b=NDKwZsZBDSf7ewB7/raMMHG77CelbU7gQrYLhnffhbmw0qjBl9G82/00Ujg1vFziwX 6DhERl1ADLWPkNnHHBn0DpeBLLwwzlcPKVfQFOztXIx1dKx8c7yf+9Eiqz4yaH59gv3J HEf0liWyMU4Yu+OYlkXMbEqoQKhMwcOYu2k+UVpZMKO903zh7aMXcs6rn+KGmCf9933y CU/PvfNsrB3BCsTmtrdVcE0yTY4m6cil7zlREs4V+hp/X+Fxet7LWKQ/1jRmHgdaQ/UZ yrxs/Aapgng41mDBkBHgXmVCdzIl2D44EDyw5sIUkGJwtmlHSdjFoURIfD+AeGF1hKWq z87A== X-Gm-Message-State: AOAM532kQQ9R++yEtNOnLamAchnMgJSKRKB1j9ExrZICWD0dOJhCqBVO wnjWZoewSH2CaS1XomczUt4F5gCO X-Google-Smtp-Source: ABdhPJznNv8XI6qbX1kfPUmlPHDsXizSsqgyf0wSEvFABUvhiILRLw2juVeEUDWZ7KV/rBhIjC4hDA== X-Received: by 2002:a5d:6150:: with SMTP id y16mr33318660wrt.219.1591187881371; Wed, 03 Jun 2020 05:38:01 -0700 (PDT) Received: from localhost.localdomain (181.red-88-10-103.dynamicip.rima-tde.net. [88.10.103.181]) by smtp.gmail.com with ESMTPSA id r5sm3370983wrq.0.2020.06.03.05.38.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jun 2020 05:38:00 -0700 (PDT) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Guan Xuetao , qemu-trivial@nongnu.org, Richard Henderson , Thomas Huth , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 2/3] target/unicore32: Replace DPRINTF() by qemu_log_mask(GUEST_ERROR) Date: Wed, 3 Jun 2020 14:37:53 +0200 Message-Id: <20200603123754.19059-3-f4bug@amsat.org> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200603123754.19059-1-f4bug@amsat.org> References: <20200603123754.19059-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::441; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-x441.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-trivial@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jun 2020 12:38:06 -0000 Replace disabled DPRINTF() by qemu_log_mask(GUEST_ERROR). Signed-off-by: Philippe Mathieu-Daudé --- target/unicore32/helper.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/target/unicore32/helper.c b/target/unicore32/helper.c index 53292ae311..00371a7da6 100644 --- a/target/unicore32/helper.c +++ b/target/unicore32/helper.c @@ -10,6 +10,7 @@ */ #include "qemu/osdep.h" +#include "qemu/log.h" #include "cpu.h" #include "exec/exec-all.h" #include "exec/helper-proto.h" @@ -106,8 +107,9 @@ void helper_cp0_set(CPUUniCore32State *env, uint32_t val, uint32_t creg, } return; unrecognized: - DPRINTF("Wrong register (%d) or wrong operation (%d) in cp0_set!\n", - creg, cop); + qemu_log_mask(LOG_GUEST_ERROR, + "Wrong register (%d) or wrong operation (%d) in cp0_set!\n", + creg, cop); } uint32_t helper_cp0_get(CPUUniCore32State *env, uint32_t creg, uint32_t cop) @@ -153,8 +155,9 @@ uint32_t helper_cp0_get(CPUUniCore32State *env, uint32_t creg, uint32_t cop) } break; } - DPRINTF("Wrong register (%d) or wrong operation (%d) in cp0_set!\n", - creg, cop); + qemu_log_mask(LOG_GUEST_ERROR, + "Wrong register (%d) or wrong operation (%d) in cp0_set!\n", + creg, cop); return 0; } -- 2.21.3