From patchwork Mon Apr 8 16:36:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 15986 Return-Path: X-Original-To: linaro@staging.patches.linaro.org Delivered-To: linaro@staging.patches.linaro.org Received: from mail-gg0-f199.google.com (mail-gg0-f199.google.com [209.85.161.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A0A7223900 for ; Mon, 8 Apr 2013 16:36:31 +0000 (UTC) Received: by mail-gg0-f199.google.com with SMTP id v2sf8126503ggc.2 for ; Mon, 08 Apr 2013 09:36:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=8LQe7UjYU5IiDiRwHup12JbY0mhjgi/1FAQpPRfG75c=; b=HOTAMuM9HqzJxaAprbxfbfiC0OdYZh2YTphTjPj5VTeKV1wVj6L++1qCkVNwsZvhPp FVSyGde7q3glFhDHeuGJTdaaGKGBkDFAInvBAhOdprpUqugnnc/w8gaVezlcRv418xlN 1uycHEHzuQHKr5K4GvtbG6sgZP75vPPeiYUeoxl+vOhAHiYgv+Vf6Mkh+PpYFcLs5zS8 DSoXK4GaLQ1jOZWz6+eEsPyIPSJNk30t7IGHaOcyCbkbIcJjQdILVo8davJgCcUODkMK iGrByf1qoaozgb237uaWPhQJkDx4+sjk0JXTzWlSknZlupLYTDmNw8In8ezhRln2hfTS tcxQ== X-Received: by 10.236.74.34 with SMTP id w22mr3942709yhd.15.1365438976217; Mon, 08 Apr 2013 09:36:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.1.129 with SMTP id 1ls3329212qem.91.gmail; Mon, 08 Apr 2013 09:36:16 -0700 (PDT) X-Received: by 10.58.230.98 with SMTP id sx2mr1578584vec.33.1365438976084; Mon, 08 Apr 2013 09:36:16 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id xa7si18801482vdc.139.2013.04.08.09.36.16 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 08 Apr 2013 09:36:16 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.171 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.171; Received: by mail-vc0-f171.google.com with SMTP id ha11so5018934vcb.16 for ; Mon, 08 Apr 2013 09:36:16 -0700 (PDT) X-Received: by 10.52.65.147 with SMTP id x19mr14131668vds.27.1365438975910; Mon, 08 Apr 2013 09:36:15 -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.58.85.136 with SMTP id h8csp26252vez; Mon, 8 Apr 2013 09:36:14 -0700 (PDT) X-Received: by 10.180.188.3 with SMTP id fw3mr13961253wic.33.1365438974383; Mon, 08 Apr 2013 09:36:14 -0700 (PDT) Received: from mnementh.archaic.org.uk (1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id p9si5019926wiz.71.2013.04.08.09.36.13 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 08 Apr 2013 09:36:14 -0700 (PDT) Received-SPF: neutral (google.com: 2001:8b0:1d0::1 is neither permitted nor denied by best guess record for domain of pm215@archaic.org.uk) client-ip=2001:8b0:1d0::1; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1UPF3E-0005HD-Vj; Mon, 08 Apr 2013 17:36:12 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, qemu-trivial@nongnu.org Subject: [PATCH] Typo, spelling and grammatical fixes Date: Mon, 8 Apr 2013 17:36:12 +0100 Message-Id: <1365438972-20259-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 X-Gm-Message-State: ALoCoQmeffIWz1dIZgeV22iqbUvwueYqDGTPPlPyCIlWtPS9GTsn/GFGldqekrKywJWucmtd2aaj X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.171 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: , Minor fixes to documentation and code comments, including a set of lets-vs-let's corrections. Signed-off-by: Peter Maydell --- docs/bootindex.txt | 10 +++++----- docs/ccid.txt | 2 +- hw/armv7m_nvic.c | 2 +- hw/s390x/s390-virtio-ccw.c | 2 +- hw/s390x/s390-virtio.c | 2 +- hw/sd.c | 4 ++-- hw/virtio-blk.c | 4 ++-- target-microblaze/mmu.c | 2 +- target-s390x/mem_helper.c | 8 ++++---- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/docs/bootindex.txt b/docs/bootindex.txt index 803ebfc..f84fac7 100644 --- a/docs/bootindex.txt +++ b/docs/bootindex.txt @@ -9,7 +9,7 @@ still be bootable. == Example == -Lets assume we have QEMU machine with two NICs (virtio, e1000) and two +Let's assume we have a QEMU machine with two NICs (virtio, e1000) and two disks (IDE, virtio): qemu -drive file=disk1.img,if=none,id=disk1 @@ -20,7 +20,7 @@ qemu -drive file=disk1.img,if=none,id=disk1 -netdev type=user,id=net1 -device e1000,netdev=net1,bootindex=1 Given the command above, firmware should try to boot from the e1000 NIC -first. If this fails, it should try the virtio NIC next, if this fails +first. If this fails, it should try the virtio NIC next; if this fails too, it should try the virtio disk, and then the IDE disk. == Limitations == @@ -28,7 +28,7 @@ too, it should try the virtio disk, and then the IDE disk. 1. Some firmware has limitations on which devices can be considered for booting. For instance, the PC BIOS boot specification allows only one disk to be bootable. If boot from disk fails for some reason, the BIOS -won't retry booting from other disk. It still can try to boot from +won't retry booting from other disk. It can still try to boot from floppy or net, though. 2. Sometimes, firmware cannot map the device path QEMU wants firmware to @@ -36,8 +36,8 @@ boot from to a boot method. It doesn't happen for devices the firmware can natively boot from, but if firmware relies on an option ROM for booting, and the same option ROM is used for booting from more then one device, the firmware may not be able to ask the option ROM to boot from -a particular device reliably. For instance with PC BIOS, if a SCSI HBA +a particular device reliably. For instance with the PC BIOS, if a SCSI HBA has three bootable devices target1, target3, target5 connected to it, the option ROM will have a boot method for each of them, but it is not possible to map from boot method back to a specific target. This is a -shortcoming of PC BIOS boot specification. +shortcoming of the PC BIOS boot specification. diff --git a/docs/ccid.txt b/docs/ccid.txt index 450a66a..8bbaa94 100644 --- a/docs/ccid.txt +++ b/docs/ccid.txt @@ -24,7 +24,7 @@ information see the specification: Revision 1.1 April 22rd, 2005 -Smartcard are used for authentication, single sign on, decryption in +Smartcards are used for authentication, single sign on, decryption in public/private schemes and digital signatures. A smartcard reader on the client cannot be used on a guest with simple usb passthrough since it will then not be available on the client, possibly locking the computer when it is "removed". On diff --git a/hw/armv7m_nvic.c b/hw/armv7m_nvic.c index 2351200..a5a0e4d 100644 --- a/hw/armv7m_nvic.c +++ b/hw/armv7m_nvic.c @@ -172,7 +172,7 @@ static uint32_t nvic_readl(nvic_state *s, uint32_t offset) return 10000; case 0xd00: /* CPUID Base. */ return cpu_single_env->cp15.c0_cpuid; - case 0xd04: /* Interrypt Control State. */ + case 0xd04: /* Interrupt Control State. */ /* VECTACTIVE */ val = s->gic.running_irq[0]; if (val == 1023) { diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c index 76b63e2..a49e440 100644 --- a/hw/s390x/s390-virtio-ccw.c +++ b/hw/s390x/s390-virtio-ccw.c @@ -76,7 +76,7 @@ static void ccw_init(QEMUMachineInitArgs *args) } my_ram_size = my_ram_size >> (20 + shift) << (20 + shift); - /* lets propagate the changed ram size into the global variable. */ + /* let's propagate the changed ram size into the global variable. */ ram_size = my_ram_size; /* get a BUS */ diff --git a/hw/s390x/s390-virtio.c b/hw/s390x/s390-virtio.c index ca275bd..64e1213 100644 --- a/hw/s390x/s390-virtio.c +++ b/hw/s390x/s390-virtio.c @@ -240,7 +240,7 @@ static void s390_init(QEMUMachineInitArgs *args) } my_ram_size = my_ram_size >> (20 + shift) << (20 + shift); - /* lets propagate the changed ram size into the global variable. */ + /* let's propagate the changed ram size into the global variable. */ ram_size = my_ram_size; /* get a BUS */ diff --git a/hw/sd.c b/hw/sd.c index 66c4014..2e0ef3e 100644 --- a/hw/sd.c +++ b/hw/sd.c @@ -308,7 +308,7 @@ static void sd_set_csd(SDState *sd, uint64_t size) sd->csd[13] = 0x40; sd->csd[14] = 0x00; sd->csd[15] = 0x00; - sd->ocr |= 1 << 30; /* High Capacity SD Memort Card */ + sd->ocr |= 1 << 30; /* High Capacity SD Memory Card */ } } @@ -1541,7 +1541,7 @@ void sd_write_data(SDState *sd, uint8_t value) case 25: /* CMD25: WRITE_MULTIPLE_BLOCK */ if (sd->data_offset == 0) { - /* Start of the block - lets check the address is valid */ + /* Start of the block - let's check the address is valid */ if (sd->data_start + sd->blk_len > sd->size) { sd->card_status |= ADDRESS_ERROR; break; diff --git a/hw/virtio-blk.c b/hw/virtio-blk.c index f2143fd..49bf6fb 100644 --- a/hw/virtio-blk.c +++ b/hw/virtio-blk.c @@ -491,10 +491,10 @@ static void virtio_blk_update_config(VirtIODevice *vdev, uint8_t *config) blkcfg.heads = s->conf->heads; /* * We must ensure that the block device capacity is a multiple of - * the logical block size. If that is not the case, lets use + * the logical block size. If that is not the case, let's use * sector_mask to adopt the geometry to have a correct picture. * For those devices where the capacity is ok for the given geometry - * we dont touch the sector value of the geometry, since some devices + * we don't touch the sector value of the geometry, since some devices * (like s390 dasd) need a specific value. Here the capacity is already * cyls*heads*secs*blk_size and the sector value is not block size * divided by 512 - instead it is the amount of blk_size blocks diff --git a/target-microblaze/mmu.c b/target-microblaze/mmu.c index 53ad263..73bf805 100644 --- a/target-microblaze/mmu.c +++ b/target-microblaze/mmu.c @@ -114,7 +114,7 @@ unsigned int mmu_translate(struct microblaze_mmu *mmu, tlb_ex = d & TLB_EX; tlb_wr = d & TLB_WR; - /* Now lets see if there is a zone that overrides the protbits. */ + /* Now let's see if there is a zone that overrides the protbits. */ tlb_zsel = (d >> 4) & 0xf; t0 = mmu->regs[MMU_R_ZPR] >> (30 - (tlb_zsel * 2)); t0 &= 0x3; diff --git a/target-s390x/mem_helper.c b/target-s390x/mem_helper.c index 372334b..02bc432 100644 --- a/target-s390x/mem_helper.c +++ b/target-s390x/mem_helper.c @@ -344,7 +344,7 @@ uint64_t HELPER(srst)(CPUS390XState *env, uint64_t r0, uint64_t end, env->retxl = str; /* Lest we fail to service interrupts in a timely manner, limit the - amount of work we're willing to do. For now, lets cap at 8k. */ + amount of work we're willing to do. For now, let's cap at 8k. */ for (len = 0; len < 0x2000; ++len) { if (str + len == end) { /* Character not found. R1 & R2 are unmodified. */ @@ -375,7 +375,7 @@ uint64_t HELPER(clst)(CPUS390XState *env, uint64_t c, uint64_t s1, uint64_t s2) s2 = fix_address(env, s2); /* Lest we fail to service interrupts in a timely manner, limit the - amount of work we're willing to do. For now, lets cap at 8k. */ + amount of work we're willing to do. For now, let's cap at 8k. */ for (len = 0; len < 0x2000; ++len) { uint8_t v1 = cpu_ldub_data(env, s1 + len); uint8_t v2 = cpu_ldub_data(env, s2 + len); @@ -424,7 +424,7 @@ uint64_t HELPER(mvst)(CPUS390XState *env, uint64_t c, uint64_t d, uint64_t s) s = fix_address(env, s); /* Lest we fail to service interrupts in a timely manner, limit the - amount of work we're willing to do. For now, lets cap at 8k. */ + amount of work we're willing to do. For now, let's cap at 8k. */ for (len = 0; len < 0x2000; ++len) { uint8_t v = cpu_ldub_data(env, s + len); cpu_stb_data(env, d + len, v); @@ -708,7 +708,7 @@ uint64_t HELPER(cksm)(CPUS390XState *env, uint64_t r1, uint64_t cksm = (uint32_t)r1; /* Lest we fail to service interrupts in a timely manner, limit the - amount of work we're willing to do. For now, lets cap at 8k. */ + amount of work we're willing to do. For now, let's cap at 8k. */ max_len = (src_len > 0x2000 ? 0x2000 : src_len); /* Process full words as available. */