From patchwork Fri Sep 14 08:42:18 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 183868 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 686702C0093 for ; Fri, 14 Sep 2012 20:17:01 +1000 (EST) Received: from localhost ([::1]:38450 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCRUt-0003cZ-P7 for incoming@patchwork.ozlabs.org; Fri, 14 Sep 2012 04:43:35 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCRUA-0001mL-Gk for qemu-devel@nongnu.org; Fri, 14 Sep 2012 04:42:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TCRU5-0007XX-FW for qemu-devel@nongnu.org; Fri, 14 Sep 2012 04:42:50 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:59751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TCRU5-0007WS-98 for qemu-devel@nongnu.org; Fri, 14 Sep 2012 04:42:45 -0400 Received: by mail-wi0-f181.google.com with SMTP id hm2so3387894wib.10 for ; Fri, 14 Sep 2012 01:42:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=tn9I2wKMTwDdrPKX1GCLiLwvOQrNUU/xy4Z0m/d1adQ=; b=KanTMhRgy0WWvB+CYNxOg7jfDYMvrMIC5AQyqaoDXf1zvCVi9BFkSMaDB9cSzdpoMj vrqPFcacrGpP3xMwoRaCkSLJUwrH6q/ymZtWPs0AKsuznuMKD0SiBDJY6jkek844nuy0 oDEaWdaM8eX8b3H2KPt7KdYDRosKTkjJbpxt/P1GX69XmIABT7RFjOW/IVDEgj7q9o+Z p+fmwNgJOJ7XD6Dk7u8C/YHjN5PmEMniuyPDrSkpWY2Lzdzt58OU/zpey2Qmonqvx8ZG DNPqHp2efe8qFZuW+AYa017gm1gh6WDuz+ZPvXITaqaKwOSCX6SZph1P8Opm6AQWDSdt x3Tg== Received: by 10.180.81.99 with SMTP id z3mr3759863wix.0.1347612164915; Fri, 14 Sep 2012 01:42:44 -0700 (PDT) Received: from localhost ([109.224.133.37]) by mx.google.com with ESMTPS id dp8sm2615989wib.3.2012.09.14.01.42.43 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 14 Sep 2012 01:42:44 -0700 (PDT) From: Stefan Hajnoczi To: Anthony Liguori Date: Fri, 14 Sep 2012 09:42:18 +0100 Message-Id: <1347612146-5407-5-git-send-email-stefanha@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1347612146-5407-1-git-send-email-stefanha@gmail.com> References: <1347612146-5407-1-git-send-email-stefanha@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.181 Cc: Stefan Weil , qemu-devel@nongnu.org, Stefan Hajnoczi Subject: [Qemu-devel] [PATCH 04/12] Spelling fixes in comments and macro names (ressource -> resource) 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 From: Stefan Weil Macro XEN_HOST_PCI_RESOURCE_BUFFER_SIZE is only used locally, so the change should be safe. Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- hw/xen-host-pci-device.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xen-host-pci-device.c b/hw/xen-host-pci-device.c index e7ff680..743b37b 100644 --- a/hw/xen-host-pci-device.c +++ b/hw/xen-host-pci-device.c @@ -47,13 +47,13 @@ static int xen_host_pci_sysfs_path(const XenHostPCIDevice *d, } -/* This size should be enough to read the first 7 lines of a ressource file */ -#define XEN_HOST_PCI_RESSOURCE_BUFFER_SIZE 400 +/* This size should be enough to read the first 7 lines of a resource file */ +#define XEN_HOST_PCI_RESOURCE_BUFFER_SIZE 400 static int xen_host_pci_get_resource(XenHostPCIDevice *d) { int i, rc, fd; char path[PATH_MAX]; - char buf[XEN_HOST_PCI_RESSOURCE_BUFFER_SIZE]; + char buf[XEN_HOST_PCI_RESOURCE_BUFFER_SIZE]; unsigned long long start, end, flags, size; char *endptr, *s; uint8_t type;