From nobody Thu Apr 25 14:06:39 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1641829300; cv=none; d=zohomail.com; s=zohoarc; b=RqlZIKvUvmwFoMWPV8BQ9zUzcoV6ZgaH1x6gclI5ctuCHg3dOfJR4PsKsNe2Yu0sg7QAl7qjqjkYvWM6oJ2y8pziN4YCWV2bho4SvrOVOa/rB4jwUaUWRdTej9yFdGl1MYzYCmbmoS3BqyDrATyptK3XJ0UVsOUlHvxmjAKknPc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1641829300; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Uiq58ihj3Y3AZ+dk2T43t8w27HAZ5bvFiAfWUBfjYEg=; b=frFMpHO/Xezv5RU4vTc80M9k5abx3WsUYe+Y3/5DZd+tUSsHjTsALIRaiWZ7K7U9AgvdPCcrGeD+tFqLRNLyO9eIhyB73Gkbgdv8OIZqjKHdL0+uFUjclUVpnlMqfrbnRhnOVOYII4I8iigPu2sK5pn+yBL+iS62+9QlLBlhDnU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1641829300493921.8661593052145; Mon, 10 Jan 2022 07:41:40 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-468-BtQJ8VCONECuwJXs2dtDsg-1; Mon, 10 Jan 2022 10:41:37 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D2F9D6414E; Mon, 10 Jan 2022 15:41:32 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8777E798B1; Mon, 10 Jan 2022 15:41:32 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 0991D4CA93; Mon, 10 Jan 2022 15:41:32 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 20AFfUGj018010 for ; Mon, 10 Jan 2022 10:41:30 -0500 Received: by smtp.corp.redhat.com (Postfix) id A9B04798AF; Mon, 10 Jan 2022 15:41:30 +0000 (UTC) Received: from work.speedport.ip (unknown [10.39.193.128]) by smtp.corp.redhat.com (Postfix) with ESMTP id EDCCE60C49; Mon, 10 Jan 2022 15:41:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1641829299; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Uiq58ihj3Y3AZ+dk2T43t8w27HAZ5bvFiAfWUBfjYEg=; b=EN3Olzf0TKAWGjpC2WfGO8z0PfRmEnorZSAp3u1lW4JOBvaTGUWBcB2NfYs8G022rPmAiI EfVCfp+DN3wrexVws4+OyiN0D7051vGWTGtzpNet8bnDe8XQgzL8FgXMj3T/L5pHJQAuhJ o7bJ9AKefwD5wIPbu/lBdOajtLRrDZo= X-MC-Unique: BtQJ8VCONECuwJXs2dtDsg-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH v2 1/3] scripts: Check spelling Date: Mon, 10 Jan 2022 16:41:25 +0100 Message-Id: <20220110154127.32620-2-twiederh@redhat.com> In-Reply-To: <20220110154127.32620-1-twiederh@redhat.com> References: <20220110154127.32620-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1641829302047100001 Content-Type: text/plain; charset="utf-8" This is a wrapper for codespell [1], a spell checker for source code. Codespell does not compare words to a dictionary, but rather works by checking words against a list of common typos, making it produce fewer false positives than other solutions. The script in this patch works around the lack of per-directory ignore lists and some oddities regarding capitalization in ignore lists. [1] (https://github.com/codespell-project/codespell/) Signed-off-by: Tim Wiederhake --- scripts/check-spelling.py | 119 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100755 scripts/check-spelling.py diff --git a/scripts/check-spelling.py b/scripts/check-spelling.py new file mode 100755 index 0000000000..0480a506e8 --- /dev/null +++ b/scripts/check-spelling.py @@ -0,0 +1,119 @@ +#!/usr/bin/env python3 + +import argparse +import re +import subprocess +import os + + +IGNORE_LIST =3D [ + # ignore all translation files + ("/po/", []), + + # ignore all git files + ("/.git/", []), + + # ignore this script + ("/scripts/check-spelling.py", []), + + # 3rd-party: keycodemapdb + ("/src/keycodemapdb/", []), + + # 3rd-party: VirtualBox SDK + ("/src/vbox/vbox_CAPI", []), + + # 3rd-party: qemu + ("/tests/qemucapabilitiesdata/caps_", []), + + # other + ("/", ["msdos", "MSDOS", "wan", "WAN", "hda", "HDA", "inout"]), + ("/NEWS.rst", "crashers"), + ("/docs/gitdm/companies/others", "Archiv"), + ("/docs/glib-adoption.rst", "preferrable"), + ("/docs/js/main.js", "whats"), + ("/examples/polkit/libvirt-acl.rules", ["userA", "userB", "userC"]), + ("/src/libvirt-domain.c", "PTD"), + ("/src/libxl/libxl_logger.c", "purposedly"), + ("/src/nwfilter/nwfilter_dhcpsnoop.c", "ether"), + ("/src/nwfilter/nwfilter_ebiptables_driver.c", "parm"), + ("/src/nwfilter/nwfilter_learnipaddr.c", "ether"), + ("/src/qemu/qemu_agent.c", "crypted"), + ("/src/qemu/qemu_agent.h", "crypted"), + ("/src/qemu/qemu_process.c", "wee"), + ("/src/security/apparmor/libvirt-lxc", "devic"), + ("/src/security/apparmor/libvirt-qemu", "readby"), + ("/src/storage_file/storage_file_probe.c", "conectix"), + ("/src/util/virnetdevmacvlan.c", "calld"), + ("/src/util/virtpm.c", "parm"), + ("/tests/qemuagenttest.c", "IST"), + ("/tests/storagepoolxml2xml", "cant"), + ("/tests/sysinfodata/", "sie"), + ("/tests/testutils.c", "nIn"), + ("/tests/vircgroupdata/ovirt-node-6.6.mounts", "hald"), + ("/tests/virhostcpudata/", "sie"), + ("/tools/virt-host-validate-common.c", "sie"), +] + + +def ignore(filename, linenumber, word, suggestion): + if len(word) <=3D 2: + return True + + for f, w in IGNORE_LIST: + if not filename.startswith(f): + continue + if word in w or not w: + return True + return False + + +def main(): + line_pattern =3D re.compile("^(.*):(.*): (.*) =3D=3D> (.*)$") + output_template =3D "(\"{0}\", \"{2}\"),\t# line {1}, \"{3}\"?" + + parser =3D argparse.ArgumentParser(description=3D"Check spelling") + parser.add_argument( + "dir", + help=3D"Path to source directory. " + "Defaults to parent directory of this script", + type=3Dos.path.realpath, + nargs=3D'?') + args =3D parser.parse_args() + + if not args.dir: + args.dir =3D os.path.dirname(os.path.dirname(os.path.realpath(__fi= le__))) + + process =3D subprocess.run( + ["codespell", args.dir], + stdout=3Dsubprocess.PIPE, + stderr=3Dsubprocess.PIPE, + universal_newlines=3DTrue) + + if process.returncode not in (0, 65): + exit("error: unexpected returncode %s" % process.returncode) + + if process.stderr: + exit("error: unexpected output to stderr: \"%s\"" % process.stderr) + + findings =3D 0 + for line in process.stdout.split("\n"): + line =3D line.strip().replace(args.dir, "") + if not line: + continue + + match =3D line_pattern.match(line) + if not match: + exit("error: unexpected line: \"%s\"" % line) + + if ignore(*match.groups()): + continue + + print(output_template.format(*match.groups())) + findings +=3D 1 + + if findings: + exit("error: %s spelling errors" % findings) + + +if __name__ =3D=3D "__main__": + main() --=20 2.31.1 From nobody Thu Apr 25 14:06:39 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1641829328; cv=none; d=zohomail.com; s=zohoarc; b=UYnUlEvcEigNgEIMVT7tQmODdTHSZNKYOONCoQLwlDPna4efzKtjuk+2BBfDepVd+GE4cmd4ojl62R5RUiiVCbJvh56cs0XPp32wNir5SkUNJQpUMdqV6MKo/oXrZYGZy2jtpPwPEq77JnR8Bt0fy6lhQMZcg2hOBTjFSXWrUHg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1641829328; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=GZtc3Eq2P2pPiRi1vERN+fM/M2fRZPc/uhO3LentRD8=; b=Sa4za15bB4um3l8R34Vy9UFfMOcEtkTj5TU5DHTVZRVh4B4fqjcZToE0ydBvxqtCpcfhlZ6Uh9+ZbF5gBa6s0Tag2kjUe+2Fj2xFbptVAE2BWR1fbEJNdH3aym0hFymcUW7zDlTBTqOxnyd6JEwHzH4W//RNF37h+NwSfvpSdHw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1641829328226239.15695798358672; Mon, 10 Jan 2022 07:42:08 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-563-4b0Po--TPcan5_ttWt1Idg-1; Mon, 10 Jan 2022 10:41:47 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 86C8064A88; Mon, 10 Jan 2022 15:41:41 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 638A584A2E; Mon, 10 Jan 2022 15:41:41 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 32A521809CB8; Mon, 10 Jan 2022 15:41:41 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 20AFfV4h018016 for ; Mon, 10 Jan 2022 10:41:31 -0500 Received: by smtp.corp.redhat.com (Postfix) id B7EF8798B0; Mon, 10 Jan 2022 15:41:31 +0000 (UTC) Received: from work.speedport.ip (unknown [10.39.193.128]) by smtp.corp.redhat.com (Postfix) with ESMTP id 095E460C49; Mon, 10 Jan 2022 15:41:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1641829327; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=GZtc3Eq2P2pPiRi1vERN+fM/M2fRZPc/uhO3LentRD8=; b=KlaS0f3bsMoAspv9pj5ap3kbN+UPShHsdoZGRCZ6joB2VhC3w0pw3a4Aoaln5uzuArSKVb Ym5N7DndwuiYNTyXUO3FtvOO2JmGc4RwldNAsMphJJsV9zktPY4T4qMR0z+H6fxLL/yeY8 M3U1LZqQ/ny8S5r15OAOpi1UQk6zfq4= X-MC-Unique: 4b0Po--TPcan5_ttWt1Idg-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH v2 2/3] ci: Add spell checking Date: Mon, 10 Jan 2022 16:41:26 +0100 Message-Id: <20220110154127.32620-3-twiederh@redhat.com> In-Reply-To: <20220110154127.32620-1-twiederh@redhat.com> References: <20220110154127.32620-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1641829329482100001 Content-Type: text/plain; charset="utf-8" Allow failure to not have false-positives fail the builds. Signed-off-by: Tim Wiederhake --- .gitlab-ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6ba11a0431..5e46f3dcb8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -87,6 +87,18 @@ codestyle: - meson test -C build --suite syntax-check --no-rebuild --print-errorl= ogs =20 =20 +spellcheck: + stage: sanity_checks + image: $CI_REGISTRY_IMAGE/ci-fedora-35:latest + allow_failure: true + needs: + - x86_64-fedora-35-container + before_script: + - *script_variables + script: + - scripts/check-spelling.py + + # This artifact published by this job is downloaded to push to Weblate # for translation usage: # https://gitlab.com/libvirt/libvirt/-/jobs/artifacts/master/download?j= ob=3Dpotfile --=20 2.31.1 From nobody Thu Apr 25 14:06:39 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1641829304; cv=none; d=zohomail.com; s=zohoarc; b=ZLsf0jdO7O4Bx4vz8ftUdomCPCkf4h5DDvcaLatnSRJZb18EVwyHLNCk+Q0LkgRSOaOVwwymxBdXbIUFwOhVn4C6osLI6Ls3XzJQTb8Z/19NiwYERYyKr4YC6gCyvJ2urtttrB15rXq4WGz61m1Zac3OWneKipkr7TZDFrZDQpw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1641829304; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=PuF0smUBnqTYXcuDnLpKShLzKWpxTLwCiL8G4mJta40=; b=DbqPF6073schPq8BeK7ztZ8s0qUq3B5UJaOY8ytYIi4vQX4pnghmBEQzHqOcL4+15bwrIJSH0DlM8SJMnNooiERwcboirGANRwbunYnXRcmNDBRpWZVGE9/uY1qp2p8UkHB9aFyUH+XMO/ELBqhHjLvJZC1Ct9VbgX56gMO61v4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1641829304602421.7235850310658; Mon, 10 Jan 2022 07:41:44 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-219-FvXEl3DdNwO16ZdR4Kdarw-1; Mon, 10 Jan 2022 10:41:41 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7B0B1190B2AA; Mon, 10 Jan 2022 15:41:35 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 57E0577457; Mon, 10 Jan 2022 15:41:35 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id DB8CE4A7CA; Mon, 10 Jan 2022 15:41:34 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 20AFfWfM018025 for ; Mon, 10 Jan 2022 10:41:32 -0500 Received: by smtp.corp.redhat.com (Postfix) id C7AEC798B9; Mon, 10 Jan 2022 15:41:32 +0000 (UTC) Received: from work.speedport.ip (unknown [10.39.193.128]) by smtp.corp.redhat.com (Postfix) with ESMTP id 18B15798B2; Mon, 10 Jan 2022 15:41:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1641829303; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=PuF0smUBnqTYXcuDnLpKShLzKWpxTLwCiL8G4mJta40=; b=OzgWiKIHXQf6Wnvs62Bbd+4BtWCgCA3QIegV/Ekz2HXTOtoNshQoiWp4SW2iQkjkuXJ9ZQ GYmcuF0DKcjZ1IvnPXilw2XvMqvvZ0JfD9i2g7m/zKfSXnHyWERJ2+rGDDtMC8LoDFrLhp eDUiNQ4o7KaZwdedTp4qFa8k/gWrtCg= X-MC-Unique: FvXEl3DdNwO16ZdR4Kdarw-1 From: Tim Wiederhake To: libvir-list@redhat.com Subject: [libvirt PATCH v2 3/3] Fix some typos Date: Mon, 10 Jan 2022 16:41:27 +0100 Message-Id: <20220110154127.32620-4-twiederh@redhat.com> In-Reply-To: <20220110154127.32620-1-twiederh@redhat.com> References: <20220110154127.32620-1-twiederh@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: Tim Wiederhake X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1641829307031100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Tim Wiederhake --- src/qemu/qemu_cgroup.c | 2 +- tests/qemucapabilitiesnumbering.c | 2 +- tests/qemucapabilitiestest.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/qemu/qemu_cgroup.c b/src/qemu/qemu_cgroup.c index 308be5b00f..22a6f56cf9 100644 --- a/src/qemu/qemu_cgroup.c +++ b/src/qemu/qemu_cgroup.c @@ -447,7 +447,7 @@ qemuSetupHostdevCgroup(virDomainObj *vm, =20 /** * qemuTeardownHostdevCgroup: - * @vm: doamin object + * @vm: domain object * @dev: device to tear down * * For given host device @dev deny access to it in CGroups. diff --git a/tests/qemucapabilitiesnumbering.c b/tests/qemucapabilitiesnumb= ering.c index eff7dbe2a1..aae21893c2 100644 --- a/tests/qemucapabilitiesnumbering.c +++ b/tests/qemucapabilitiesnumbering.c @@ -57,7 +57,7 @@ modify(struct qmpCommandList *list G_GNUC_UNUSED) =20 if (STREQ_NULLABLE(cmdname, "qom-list-properties")) { found =3D i; - // break; /* uncomment if you want to find the first occurence= */ + // break; /* uncomment if you want to find the first occurrenc= e */ } } =20 diff --git a/tests/qemucapabilitiestest.c b/tests/qemucapabilitiestest.c index ae208f442c..79dd358ef4 100644 --- a/tests/qemucapabilitiestest.c +++ b/tests/qemucapabilitiestest.c @@ -213,8 +213,8 @@ mymain(void) * * If you manually edit replies files you can run * VIR_TEST_REGENERATE_OUTPUT=3D1 tests/qemucapabilitiesnumbering - * to fix the replies ids. The tool also allows for programatic modifi= cation - * of the replies file. + * to fix the replies ids. The tool also allows for programmatic + * modification of the replies file. * * Once a replies file has been generated and tweaked if necessary, * you can drop it into tests/qemucapabilitiesdata/ (with a sensible --=20 2.31.1