From patchwork Mon Oct 24 12:02:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alon Levy X-Patchwork-Id: 121336 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 9256D1007D1 for ; Mon, 24 Oct 2011 23:29:03 +1100 (EST) Received: from localhost ([::1]:57586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIJHe-0000nt-5P for incoming@patchwork.ozlabs.org; Mon, 24 Oct 2011 08:05:38 -0400 Received: from eggs.gnu.org ([140.186.70.92]:53777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIJHJ-0000Ry-Up for qemu-devel@nongnu.org; Mon, 24 Oct 2011 08:05:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIJHD-00028T-F3 for qemu-devel@nongnu.org; Mon, 24 Oct 2011 08:05:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45121) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIJHC-00028E-TH for qemu-devel@nongnu.org; Mon, 24 Oct 2011 08:05:11 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p9OC5AS1016846 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 24 Oct 2011 08:05:10 -0400 Received: from bow.tlv.redhat.com (dhcp-3-73.tlv.redhat.com [10.35.3.73]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p9OC52vf027291; Mon, 24 Oct 2011 08:05:08 -0400 From: Alon Levy To: lcapitulino@redhat.com, armbru@redhat.com, kraxel@redhat.com Date: Mon, 24 Oct 2011 14:02:16 +0200 Message-Id: <1319457739-14562-3-git-send-email-alevy@redhat.com> In-Reply-To: <1319457739-14562-1-git-send-email-alevy@redhat.com> References: <1319457739-14562-1-git-send-email-alevy@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 209.132.183.28 Cc: mlureau@redhat.com, qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH 2/5] qxl: s/__FUNCTION__/__func__/, change logging levels X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 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-bounces+incoming=patchwork.ozlabs.org@nongnu.org --- hw/qxl.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hw/qxl.c b/hw/qxl.c index 4003e53..af02cda 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -515,7 +515,7 @@ static int interface_get_command(QXLInstance *sin, struct QXLCommandExt *ext) switch (qxl->mode) { case QXL_MODE_VGA: - dprint(qxl, 2, "%s: vga\n", __FUNCTION__); + dprint(qxl, 4, "%s: vga\n", __func__); ret = false; qemu_mutex_lock(&qxl->ssd.lock); if (qxl->ssd.update != NULL) { @@ -526,19 +526,19 @@ static int interface_get_command(QXLInstance *sin, struct QXLCommandExt *ext) } qemu_mutex_unlock(&qxl->ssd.lock); if (ret) { - dprint(qxl, 2, "%s %s\n", __FUNCTION__, qxl_mode_to_string(qxl->mode)); + dprint(qxl, 4, "%s %s\n", __func__, qxl_mode_to_string(qxl->mode)); qxl_log_command(qxl, "vga", ext); } return ret; case QXL_MODE_COMPAT: case QXL_MODE_NATIVE: case QXL_MODE_UNDEFINED: - dprint(qxl, 4, "%s: %s\n", __FUNCTION__, qxl_mode_to_string(qxl->mode)); + dprint(qxl, 5, "%s: %s\n", __func__, qxl_mode_to_string(qxl->mode)); ring = &qxl->ram->cmd_ring; if (SPICE_RING_IS_EMPTY(ring)) { return false; } - dprint(qxl, 2, "%s: %s\n", __FUNCTION__, qxl_mode_to_string(qxl->mode)); + dprint(qxl, 4, "%s: %s\n", __func__, qxl_mode_to_string(qxl->mode)); SPICE_RING_CONS_ITEM(ring, cmd); ext->cmd = *cmd; ext->group_id = MEMSLOT_GROUP_GUEST;