From nobody Mon May 6 07:45:12 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 207.211.31.120 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=1573653650; cv=none; d=zoho.com; s=zohoarc; b=Ha1zRfpn686ulMaBY1rohr04VQiY0XpWDWl0oT2ZgxCdbnfPmNp2L5qCPCJN+8oAGIj4eodWgAHUKN2f26TUr/M6gu0Rn8HfEUmILn6XUO1h21qwZPwR46ZEp0h4QlSTDy45rw09304NLqjawgXDhrBZG2W4sIusCXcC2W9I98s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1573653650; h=Content-Type:Content-Transfer-Encoding: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=S9mBaR2OTBX/eMljQ/YkCFNd7DSuJ6k56g8FVQBmGcg=; b=mv5CDT/NfHh/PSWD/iUPXnQGEMaVR3Daha4DCzlXhY6WdjeDzecjT34rQeanRnqFy5hQIDecCi/QgcxJOCIB4c5rLlartT6QLB1+MseVbzqboDbVqV0pviQP3HT5s79n1hnudFPpcqYBDOyV1+DyIn+m+keJ6R6JEL7AviunEvU= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1573653650306584.5927972945165; Wed, 13 Nov 2019 06:00:50 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-161-8knCapq3MyKN5Xee3OH7Qw-1; Wed, 13 Nov 2019 09:00:46 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5749C18B5F72; Wed, 13 Nov 2019 14:00:40 +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 23F1E183A2; Wed, 13 Nov 2019 14:00:40 +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 ADD704A460; Wed, 13 Nov 2019 14:00:39 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xADE0c16010190 for ; Wed, 13 Nov 2019 09:00:38 -0500 Received: by smtp.corp.redhat.com (Postfix) id 05981106F955; Wed, 13 Nov 2019 14:00:38 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.43.2.149]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0C4E110246E6 for ; Wed, 13 Nov 2019 14:00:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573653649; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=S9mBaR2OTBX/eMljQ/YkCFNd7DSuJ6k56g8FVQBmGcg=; b=Ye8vqfKamcOdhzzN2vZEgpWrF7PJvXtdM6epW5KF7AxgUhTd8cqb0rrHQlnFSDmF0Httfw H3SZ68c5bol4qc72nHGf3LC8Qe89TYxXPgkP3pyB6KLsgG69KuTDvdtfwVBDxoGbGdiESB dVYhB8aarfLiRTG8eRzH61bUqxLn3Bs= From: Pavel Hrdina To: libvir-list@redhat.com Date: Wed, 13 Nov 2019 15:00:31 +0100 Message-Id: <59517e8b8871f72e36775b263c173b92a5b71bdb.1573653592.git.phrdina@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 1/2] replace use of gnulib snprintf by g_snprintf 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.12 X-MC-Unique: 8knCapq3MyKN5Xee3OH7Qw-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Glib implementation follows the ISO C99 standard so it's safe to replace the gnulib implementation. Signed-off-by: Pavel Hrdina Reviewed-by: Peter Krempa --- src/hyperv/hyperv_driver.c | 4 +- src/libxl/libxl_conf.c | 22 +++++------ src/libxl/libxl_migration.c | 4 +- src/lxc/lxc_process.c | 6 +-- src/nwfilter/nwfilter_ebiptables_driver.c | 36 +++++++++--------- src/nwfilter/nwfilter_learnipaddr.c | 2 +- src/openvz/openvz_driver.c | 6 +-- src/qemu/qemu_agent.c | 46 +++++++++++------------ src/qemu/qemu_driver.c | 8 ++-- src/security/security_dac.c | 8 ++-- src/security/virt-aa-helper.c | 2 +- src/storage/storage_util.c | 2 +- src/util/virhostcpu.c | 2 +- src/util/viriptables.c | 6 +-- src/util/virmacaddr.c | 8 ++-- src/util/virnetdevbridge.c | 4 +- src/util/virnetdevmacvlan.c | 12 +++--- src/util/virpci.c | 4 +- src/util/virpidfile.c | 4 +- src/util/virtime.c | 10 ++--- src/util/virusb.c | 8 ++-- src/util/viruuid.c | 12 +++--- src/vbox/vbox_common.c | 24 ++++++------ src/vbox/vbox_tmpl.c | 2 +- src/vmx/vmx.c | 18 ++++----- src/vz/vz_driver.c | 22 +++++------ src/vz/vz_sdk.c | 8 ++-- tests/libxlmock.c | 2 +- tests/qemuagenttest.c | 12 +++--- tests/testutils.c | 2 +- tests/virnetsockettest.c | 2 +- tests/virpcimock.c | 28 +++++++------- tests/virsystemdtest.c | 4 +- tools/virsh-domain-monitor.c | 2 +- tools/virsh-domain.c | 2 +- tools/virt-host-validate-common.c | 2 +- tools/virt-login-shell.c | 4 +- tools/vsh-table.c | 6 +-- tools/vsh.c | 22 +++++------ tools/wireshark/src/packet-libvirt.c | 2 +- 40 files changed, 190 insertions(+), 190 deletions(-) diff --git a/src/hyperv/hyperv_driver.c b/src/hyperv/hyperv_driver.c index ac10f86b82..3a2f6602bc 100644 --- a/src/hyperv/hyperv_driver.c +++ b/src/hyperv/hyperv_driver.c @@ -1381,7 +1381,7 @@ hypervDomainSendKey(virDomainPtr domain, unsigned int= codeset, =20 /* press the keys */ for (i =3D 0; i < nkeycodes; i++) { - snprintf(keycodeStr, sizeof(keycodeStr), "%d", translatedKeycodes[= i]); + g_snprintf(keycodeStr, sizeof(keycodeStr), "%d", translatedKeycode= s[i]); =20 params =3D hypervCreateInvokeParamsList(priv, "PressKey", selector, Msvm_Keyboard_WmiInfo); @@ -1409,7 +1409,7 @@ hypervDomainSendKey(virDomainPtr domain, unsigned int= codeset, =20 /* release the keys */ for (i =3D 0; i < nkeycodes; i++) { - snprintf(keycodeStr, sizeof(keycodeStr), "%d", translatedKeycodes[= i]); + g_snprintf(keycodeStr, sizeof(keycodeStr), "%d", translatedKeycode= s[i]); params =3D hypervCreateInvokeParamsList(priv, "ReleaseKey", select= or, Msvm_Keyboard_WmiInfo); =20 diff --git a/src/libxl/libxl_conf.c b/src/libxl/libxl_conf.c index 920f228d6a..71a503c0f7 100644 --- a/src/libxl/libxl_conf.c +++ b/src/libxl/libxl_conf.c @@ -419,12 +419,12 @@ libxlMakeDomBuildInfo(virDomainDefPtr def, continue; } =20 - snprintf(xlCPU, - sizeof(xlCPU), - "%s=3D0", - xenTranslateCPUFeature( - def->cpu->features[i].name, - false)); + g_snprintf(xlCPU, + sizeof(xlCPU), + "%s=3D0", + xenTranslateCPUFeature( + def->cpu->features[i].name, + false)); if (libxl_cpuid_parse_config(&b_info->cpuid, x= lCPU)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, _("unsupported cpu feature '%s'"), @@ -441,11 +441,11 @@ libxlMakeDomBuildInfo(virDomainDefPtr def, continue; } =20 - snprintf(xlCPU, - sizeof(xlCPU), - "%s=3D1", - xenTranslateCPUFeature( - def->cpu->features[i].name, false)= ); + g_snprintf(xlCPU, + sizeof(xlCPU), + "%s=3D1", + xenTranslateCPUFeature( + def->cpu->features[i].name, fal= se)); if (libxl_cpuid_parse_config(&b_info->cpuid, x= lCPU)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, _("unsupported cpu feature '%s'"), diff --git a/src/libxl/libxl_migration.c b/src/libxl/libxl_migration.c index b223916647..287772be73 100644 --- a/src/libxl/libxl_migration.c +++ b/src/libxl/libxl_migration.c @@ -745,7 +745,7 @@ libxlDomainMigrationDstPrepare(virConnectPtr dconn, *uri_out =3D g_strdup_printf("tcp://%s:%d", hostname, port); } =20 - snprintf(portstr, sizeof(portstr), "%d", port); + g_snprintf(portstr, sizeof(portstr), "%d", port); =20 if (virNetSocketNewListenTCP(hostname, portstr, AF_UNSPEC, @@ -1221,7 +1221,7 @@ libxlDomainMigrationSrcPerform(libxlDriverPrivatePtr = driver, =20 hostname =3D uri->server; port =3D uri->port; - snprintf(portstr, sizeof(portstr), "%d", port); + g_snprintf(portstr, sizeof(portstr), "%d", port); =20 /* socket connect to dst host:port */ if (virNetSocketNewConnectTCP(hostname, portstr, diff --git a/src/lxc/lxc_process.c b/src/lxc/lxc_process.c index 8ca3710436..012d482337 100644 --- a/src/lxc/lxc_process.c +++ b/src/lxc/lxc_process.c @@ -1415,10 +1415,10 @@ int virLXCProcessStart(virConnectPtr conn, if (virLXCProcessReadLogOutput(vm, logfile, pos, ebuf, sizeof(ebuf)) <=3D 0) { if (WIFEXITED(status)) - snprintf(ebuf, sizeof(ebuf), _("unexpected exit status %d"= ), - WEXITSTATUS(status)); + g_snprintf(ebuf, sizeof(ebuf), _("unexpected exit status %= d"), + WEXITSTATUS(status)); else - snprintf(ebuf, sizeof(ebuf), "%s", _("terminated abnormall= y")); + g_snprintf(ebuf, sizeof(ebuf), "%s", _("terminated abnorma= lly")); } virReportError(VIR_ERR_INTERNAL_ERROR, _("guest failed to start: %s"), ebuf); diff --git a/src/nwfilter/nwfilter_ebiptables_driver.c b/src/nwfilter/nwfil= ter_ebiptables_driver.c index 6f1887977b..0cf8149193 100644 --- a/src/nwfilter/nwfilter_ebiptables_driver.c +++ b/src/nwfilter/nwfilter_ebiptables_driver.c @@ -76,9 +76,9 @@ enum ctdirStatus { static enum ctdirStatus iptables_ctdir_corrected; =20 #define PRINT_ROOT_CHAIN(buf, prefix, ifname) \ - snprintf(buf, sizeof(buf), "libvirt-%c-%s", prefix, ifname) + g_snprintf(buf, sizeof(buf), "libvirt-%c-%s", prefix, ifname) #define PRINT_CHAIN(buf, prefix, ifname, suffix) \ - snprintf(buf, sizeof(buf), "%c-%s-%s", prefix, ifname, suffix) + g_snprintf(buf, sizeof(buf), "%c-%s-%s", prefix, ifname, suffix) =20 #define VIRT_IN_CHAIN "libvirt-in" #define VIRT_OUT_CHAIN "libvirt-out" @@ -86,7 +86,7 @@ static enum ctdirStatus iptables_ctdir_corrected; #define HOST_IN_CHAIN "libvirt-host-in" =20 #define PRINT_IPT_ROOT_CHAIN(buf, prefix, ifname) \ - snprintf(buf, sizeof(buf), "%c%c-%s", prefix[0], prefix[1], ifname) + g_snprintf(buf, sizeof(buf), "%c%c-%s", prefix[0], prefix[1], ifname) =20 static bool newMatchState; =20 @@ -204,7 +204,7 @@ _printDataType(virNWFilterVarCombIterPtr vars, data =3D virSocketAddrFormat(&item->u.ipaddr); if (!data) return -1; - if (snprintf(buf, bufsize, "%s", data) >=3D bufsize) { + if (g_snprintf(buf, bufsize, "%s", data) >=3D bufsize) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("buffer too small for IP address")); VIR_FREE(data); @@ -218,7 +218,7 @@ _printDataType(virNWFilterVarCombIterPtr vars, if (!data) return -1; =20 - if (snprintf(buf, bufsize, "%s", data) >=3D bufsize) { + if (g_snprintf(buf, bufsize, "%s", data) >=3D bufsize) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("buffer too small for IPv6 address")); VIR_FREE(data); @@ -240,8 +240,8 @@ _printDataType(virNWFilterVarCombIterPtr vars, =20 case DATATYPE_IPV6MASK: case DATATYPE_IPMASK: - if (snprintf(buf, bufsize, "%d", - item->u.u8) >=3D bufsize) { + if (g_snprintf(buf, bufsize, "%d", + item->u.u8) >=3D bufsize) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("Buffer too small for uint8 type")); return -1; @@ -250,8 +250,8 @@ _printDataType(virNWFilterVarCombIterPtr vars, =20 case DATATYPE_UINT32: case DATATYPE_UINT32_HEX: - if (snprintf(buf, bufsize, asHex ? "0x%x" : "%u", - item->u.u32) >=3D bufsize) { + if (g_snprintf(buf, bufsize, asHex ? "0x%x" : "%u", + item->u.u32) >=3D bufsize) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("Buffer too small for uint32 type")); return -1; @@ -260,8 +260,8 @@ _printDataType(virNWFilterVarCombIterPtr vars, =20 case DATATYPE_UINT16: case DATATYPE_UINT16_HEX: - if (snprintf(buf, bufsize, asHex ? "0x%x" : "%d", - item->u.u16) >=3D bufsize) { + if (g_snprintf(buf, bufsize, asHex ? "0x%x" : "%d", + item->u.u16) >=3D bufsize) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("Buffer too small for uint16 type")); return -1; @@ -270,8 +270,8 @@ _printDataType(virNWFilterVarCombIterPtr vars, =20 case DATATYPE_UINT8: case DATATYPE_UINT8_HEX: - if (snprintf(buf, bufsize, asHex ? "0x%x" : "%d", - item->u.u8) >=3D bufsize) { + if (g_snprintf(buf, bufsize, asHex ? "0x%x" : "%d", + item->u.u8) >=3D bufsize) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("Buffer too small for uint8 type")); return -1; @@ -3192,11 +3192,11 @@ iptablesCheckBridgeNFCallEnabled(bool isIPv6) if (read(fd, buffer, 1) =3D=3D 1) { if (buffer[0] =3D=3D '0') { char msg[256]; - snprintf(msg, sizeof(msg), - _("To enable ip%stables filtering for the VM = do " - "'echo 1 > %s'"), - isIPv6 ? "6" : "", - pathname); + g_snprintf(msg, sizeof(msg), + _("To enable ip%stables filtering for the V= M do " + "'echo 1 > %s'"), + isIPv6 ? "6" : "", + pathname); VIR_WARN("%s", msg); if (isIPv6) lastReportIPv6 =3D now; diff --git a/src/nwfilter/nwfilter_learnipaddr.c b/src/nwfilter/nwfilter_le= arnipaddr.c index 293007300a..08ef02be7c 100644 --- a/src/nwfilter/nwfilter_learnipaddr.c +++ b/src/nwfilter/nwfilter_learnipaddr.c @@ -61,7 +61,7 @@ VIR_LOG_INIT("nwfilter.nwfilter_learnipaddr"); =20 #define IFINDEX2STR(VARNAME, ifindex) \ char VARNAME[INT_BUFSIZE_BOUND(ifindex)]; \ - snprintf(VARNAME, sizeof(VARNAME), "%d", ifindex); + g_snprintf(VARNAME, sizeof(VARNAME), "%d", ifindex); =20 #define PKT_TIMEOUT_MS 500 /* ms */ =20 diff --git a/src/openvz/openvz_driver.c b/src/openvz/openvz_driver.c index 8a24c9265f..e07b3b302d 100644 --- a/src/openvz/openvz_driver.c +++ b/src/openvz/openvz_driver.c @@ -1248,7 +1248,7 @@ static int openvzDomainSetVcpusInternal(virDomainObjP= tr vm, if (pcpus > 0 && pcpus < nvcpus) nvcpus =3D pcpus; =20 - snprintf(str_vcpus, sizeof(str_vcpus), "%d", nvcpus); + g_snprintf(str_vcpus, sizeof(str_vcpus), "%d", nvcpus); =20 openvzSetProgramSentinal(prog, vm->def->name); if (virRun(prog, NULL) < 0) @@ -1503,7 +1503,7 @@ static int openvzConnectListDefinedDomains(virConnect= Ptr conn G_GNUC_UNUSED, _("Could not parse VPS ID %s"), buf); continue; } - snprintf(vpsname, sizeof(vpsname), "%d", veid); + g_snprintf(vpsname, sizeof(vpsname), "%d", veid); names[got] =3D g_strdup(vpsname); got ++; } @@ -1600,7 +1600,7 @@ openvzDomainSetMemoryInternal(virDomainObjPtr vm, }; =20 /* memory has to be changed its format from kbyte to byte */ - snprintf(str_mem, sizeof(str_mem), "%llu", mem * 1024); + g_snprintf(str_mem, sizeof(str_mem), "%llu", mem * 1024); =20 openvzSetProgramSentinal(prog, vm->def->name); if (virRun(prog, NULL) < 0) diff --git a/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c index 5a50f7f3be..7c0d8b83f7 100644 --- a/src/qemu/qemu_agent.c +++ b/src/qemu/qemu_agent.c @@ -2227,61 +2227,61 @@ qemuAgentGetFSInfoParams(qemuAgentPtr mon, =20 for (i =3D 0; i < nfs; i++) { char param_name[VIR_TYPED_PARAM_FIELD_LENGTH]; - snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, - "fs.%zu.name", i); + g_snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, + "fs.%zu.name", i); if (virTypedParamsAddString(params, nparams, maxparams, param_name, fsinfo[i]->name) < 0) goto cleanup; - snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, - "fs.%zu.mountpoint", i); + g_snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, + "fs.%zu.mountpoint", i); if (virTypedParamsAddString(params, nparams, maxparams, param_name, fsinfo[i]->mountpoint) < 0) goto cleanup; - snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, - "fs.%zu.fstype", i); + g_snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, + "fs.%zu.fstype", i); if (virTypedParamsAddString(params, nparams, maxparams, param_name, fsinfo[i]->fstype) < 0) goto cleanup; =20 /* disk usage values are not returned by older guest agents, so * only add the params if the value is set */ - snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, - "fs.%zu.total-bytes", i); + g_snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, + "fs.%zu.total-bytes", i); if (fsinfo[i]->total_bytes !=3D -1 && virTypedParamsAddULLong(params, nparams, maxparams, param_name, fsinfo[i]->total_bytes) < = 0) goto cleanup; =20 - snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, - "fs.%zu.used-bytes", i); + g_snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, + "fs.%zu.used-bytes", i); if (fsinfo[i]->used_bytes !=3D -1 && virTypedParamsAddULLong(params, nparams, maxparams, param_name, fsinfo[i]->used_bytes) < 0) goto cleanup; =20 - snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, - "fs.%zu.disk.count", i); + g_snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, + "fs.%zu.disk.count", i); if (virTypedParamsAddUInt(params, nparams, maxparams, param_name, fsinfo[i]->ndisks) < 0) goto cleanup; for (j =3D 0; j < fsinfo[i]->ndisks; j++) { qemuAgentDiskInfoPtr d =3D fsinfo[i]->disks[j]; - snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, - "fs.%zu.disk.%zu.alias", i, j); + g_snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, + "fs.%zu.disk.%zu.alias", i, j); if (d->alias && virTypedParamsAddString(params, nparams, maxparams, param_name, d->alias) < 0) goto cleanup; =20 - snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, - "fs.%zu.disk.%zu.serial", i, j); + g_snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, + "fs.%zu.disk.%zu.serial", i, j); if (d->serial && virTypedParamsAddString(params, nparams, maxparams, param_name, d->serial) < 0) goto cleanup; =20 - snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, - "fs.%zu.disk.%zu.device", i, j); + g_snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, + "fs.%zu.disk.%zu.device", i, j); if (d->devnode && virTypedParamsAddString(params, nparams, maxparams, param_name, d->devnode) < 0) @@ -2587,15 +2587,15 @@ qemuAgentGetUsers(qemuAgentPtr mon, return -1; } =20 - snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, "user.%zu.name"= , i); + g_snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, "user.%zu.nam= e", i); if (virTypedParamsAddString(params, nparams, maxparams, param_name, strvalue) < 0) return -1; =20 /* 'domain' is only present for windows guests */ if ((strvalue =3D virJSONValueObjectGetString(entry, "domain"))) { - snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, - "user.%zu.domain", i); + g_snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, + "user.%zu.domain", i); if (virTypedParamsAddString(params, nparams, maxparams, param_name, strvalue) < 0) return -1; @@ -2606,8 +2606,8 @@ qemuAgentGetUsers(qemuAgentPtr mon, _("'login-time' missing in reply of guest-get-u= sers")); return -1; } - snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, - "user.%zu.login-time", i); + g_snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, + "user.%zu.login-time", i); if (virTypedParamsAddULLong(params, nparams, maxparams, param_name, logintime * 1000) < 0) return -1; diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index c969a3d463..6bb8dd27b2 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -5107,8 +5107,8 @@ qemuDomainPinVcpuLive(virDomainObjPtr vm, if (virDomainSaveStatus(driver->xmlopt, cfg->stateDir, vm, driver->cap= s) < 0) goto cleanup; =20 - if (snprintf(paramField, VIR_TYPED_PARAM_FIELD_LENGTH, - VIR_DOMAIN_TUNABLE_CPU_VCPUPIN, vcpu) < 0) { + if (g_snprintf(paramField, VIR_TYPED_PARAM_FIELD_LENGTH, + VIR_DOMAIN_TUNABLE_CPU_VCPUPIN, vcpu) < 0) { goto cleanup; } =20 @@ -5802,8 +5802,8 @@ qemuDomainPinIOThread(virDomainPtr dom, if (virDomainSaveStatus(driver->xmlopt, cfg->stateDir, vm, driver-= >caps) < 0) goto endjob; =20 - if (snprintf(paramField, VIR_TYPED_PARAM_FIELD_LENGTH, - VIR_DOMAIN_TUNABLE_CPU_IOTHREADSPIN, iothread_id) < 0= ) { + if (g_snprintf(paramField, VIR_TYPED_PARAM_FIELD_LENGTH, + VIR_DOMAIN_TUNABLE_CPU_IOTHREADSPIN, iothread_id) <= 0) { goto endjob; } =20 diff --git a/src/security/security_dac.c b/src/security/security_dac.c index 56cca6cf9c..a9a1fad5d7 100644 --- a/src/security/security_dac.c +++ b/src/security/security_dac.c @@ -2342,8 +2342,8 @@ virSecurityDACGetProcessLabelInternal(pid_t pid, goto cleanup; } =20 - snprintf(seclabel->label, VIR_SECURITY_LABEL_BUFLEN, - "+%u:+%u", (unsigned int)sb.st_uid, (unsigned int)sb.st_gid); + g_snprintf(seclabel->label, VIR_SECURITY_LABEL_BUFLEN, + "+%u:+%u", (unsigned int)sb.st_uid, (unsigned int)sb.st_gid= ); ret =3D 0; =20 cleanup: @@ -2371,8 +2371,8 @@ virSecurityDACGetProcessLabelInternal(pid_t pid, return -1; } =20 - snprintf(seclabel->label, VIR_SECURITY_LABEL_BUFLEN, - "+%u:+%u", (unsigned int)p.ki_uid, (unsigned int)p.ki_groups[= 0]); + g_snprintf(seclabel->label, VIR_SECURITY_LABEL_BUFLEN, + "+%u:+%u", (unsigned int)p.ki_uid, (unsigned int)p.ki_group= s[0]); =20 return 0; } diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c index 5ac9a9eeb8..bdb7f93a29 100644 --- a/src/security/virt-aa-helper.c +++ b/src/security/virt-aa-helper.c @@ -155,7 +155,7 @@ parserCommand(const char *profile_name, const char cmd) return -1; } =20 - snprintf(flag, 3, "-%c", cmd); + g_snprintf(flag, 3, "-%c", cmd); =20 profile =3D g_strdup_printf("%s/%s", APPARMOR_DIR "/libvirt", profile_= name); =20 diff --git a/src/storage/storage_util.c b/src/storage/storage_util.c index f91c2c64ee..4d282fbda5 100644 --- a/src/storage/storage_util.c +++ b/src/storage/storage_util.c @@ -3962,7 +3962,7 @@ virStorageBackendSCSIFindLUs(virStoragePoolObjPtr poo= l, if (virDirOpen(&devicedir, device_path) < 0) return -1; =20 - snprintf(devicepattern, sizeof(devicepattern), "%u:%%u:%%u:%%u\n", sca= nhost); + g_snprintf(devicepattern, sizeof(devicepattern), "%u:%%u:%%u:%%u\n", s= canhost); =20 while ((retval =3D virDirRead(devicedir, &lun_dirent, device_path)) > = 0) { int rc; diff --git a/src/util/virhostcpu.c b/src/util/virhostcpu.c index 1e685de386..a3ef067f41 100644 --- a/src/util/virhostcpu.c +++ b/src/util/virhostcpu.c @@ -794,7 +794,7 @@ virHostCPUGetStatsLinux(FILE *procstat, if (cpuNum =3D=3D VIR_NODE_CPU_STATS_ALL_CPUS) { strcpy(cpu_header, "cpu "); } else { - snprintf(cpu_header, sizeof(cpu_header), "cpu%d ", cpuNum); + g_snprintf(cpu_header, sizeof(cpu_header), "cpu%d ", cpuNum); } =20 while (fgets(line, sizeof(line), procstat) !=3D NULL) { diff --git a/src/util/viriptables.c b/src/util/viriptables.c index b7cce40d37..6b3a025880 100644 --- a/src/util/viriptables.c +++ b/src/util/viriptables.c @@ -192,7 +192,7 @@ iptablesInput(virFirewallPtr fw, { char portstr[32]; =20 - snprintf(portstr, sizeof(portstr), "%d", port); + g_snprintf(portstr, sizeof(portstr), "%d", port); portstr[sizeof(portstr) - 1] =3D '\0'; =20 virFirewallAddRule(fw, layer, @@ -217,7 +217,7 @@ iptablesOutput(virFirewallPtr fw, { char portstr[32]; =20 - snprintf(portstr, sizeof(portstr), "%d", port); + g_snprintf(portstr, sizeof(portstr), "%d", port); portstr[sizeof(portstr) - 1] =3D '\0'; =20 virFirewallAddRule(fw, layer, @@ -1100,7 +1100,7 @@ iptablesOutputFixUdpChecksum(virFirewallPtr fw, { char portstr[32]; =20 - snprintf(portstr, sizeof(portstr), "%d", port); + g_snprintf(portstr, sizeof(portstr), "%d", port); portstr[sizeof(portstr) - 1] =3D '\0'; =20 virFirewallAddRule(fw, VIR_FIREWALL_LAYER_IPV4, diff --git a/src/util/virmacaddr.c b/src/util/virmacaddr.c index 5f825735ae..3eb6407c45 100644 --- a/src/util/virmacaddr.c +++ b/src/util/virmacaddr.c @@ -187,10 +187,10 @@ const char * virMacAddrFormat(const virMacAddr *addr, char *str) { - snprintf(str, VIR_MAC_STRING_BUFLEN, - "%02x:%02x:%02x:%02x:%02x:%02x", - addr->addr[0], addr->addr[1], addr->addr[2], - addr->addr[3], addr->addr[4], addr->addr[5]); + g_snprintf(str, VIR_MAC_STRING_BUFLEN, + "%02x:%02x:%02x:%02x:%02x:%02x", + addr->addr[0], addr->addr[1], addr->addr[2], + addr->addr[3], addr->addr[4], addr->addr[5]); str[VIR_MAC_STRING_BUFLEN-1] =3D '\0'; return str; } diff --git a/src/util/virnetdevbridge.c b/src/util/virnetdevbridge.c index d466545cc1..3a7a6dc730 100644 --- a/src/util/virnetdevbridge.c +++ b/src/util/virnetdevbridge.c @@ -126,7 +126,7 @@ static int virNetDevBridgeSet(const char *brname, =20 if (virFileExists(path)) { char valuestr[INT_BUFSIZE_BOUND(value)]; - snprintf(valuestr, sizeof(valuestr), "%lu", value); + g_snprintf(valuestr, sizeof(valuestr), "%lu", value); if (virFileWriteStr(path, valuestr, 0) >=3D 0) return 0; VIR_DEBUG("Unable to set bridge %s %s via sysfs", brname, paramnam= e); @@ -219,7 +219,7 @@ virNetDevBridgePortSet(const char *brname, int ret =3D -1; g_autofree char *path =3D NULL; =20 - snprintf(valuestr, sizeof(valuestr), "%lu", value); + g_snprintf(valuestr, sizeof(valuestr), "%lu", value); =20 path =3D g_strdup_printf(SYSFS_NET_DIR "%s/brif/%s/%s", brname, ifname, paramname); diff --git a/src/util/virnetdevmacvlan.c b/src/util/virnetdevmacvlan.c index cb901d7136..68c68a19ff 100644 --- a/src/util/virnetdevmacvlan.c +++ b/src/util/virnetdevmacvlan.c @@ -526,11 +526,11 @@ typedef struct virNetlinkCallbackData *virNetlinkCall= backDataPtr; static int instance2str(const unsigned char *p, char *dst, size_t size) { if (dst && size > INSTANCE_STRLEN) { - snprintf(dst, size, "%02x%02x%02x%02x-%02x%02x-%02x%02x-" - "%02x%02x-%02x%02x%02x%02x%02x%02x", - p[0], p[1], p[2], p[3], - p[4], p[5], p[6], p[7], - p[8], p[9], p[10], p[11], p[12], p[13], p[14], p[15]); + g_snprintf(dst, size, "%02x%02x%02x%02x-%02x%02x-%02x%02x-" + "%02x%02x-%02x%02x%02x%02x%02x%02x", + p[0], p[1], p[2], p[3], + p[4], p[5], p[6], p[7], + p[8], p[9], p[10], p[11], p[12], p[13], p[14], p[15]); return 0; } return -1; @@ -997,7 +997,7 @@ virNetDevMacVLanCreateWithVPortProfile(const char *ifna= meRequested, virMutexUnlock(&virNetDevMacVLanCreateMutex); return -1; } - snprintf(ifname, sizeof(ifname), pattern, reservedID); + g_snprintf(ifname, sizeof(ifname), pattern, reservedID); if (virNetDevMacVLanCreate(ifname, type, macaddress, linkdev, macvtapMode, &do_retry) < 0) { virNetDevMacVLanReleaseID(reservedID, flags); diff --git a/src/util/virpci.c b/src/util/virpci.c index 9a43df7ab2..9bea5a20d0 100644 --- a/src/util/virpci.c +++ b/src/util/virpci.c @@ -1394,8 +1394,8 @@ virPCIDeviceNew(unsigned int domain, } =20 /* strings contain '0x' prefix */ - if (snprintf(dev->id, sizeof(dev->id), "%s %s", &vendor[2], - &product[2]) >=3D sizeof(dev->id)) { + if (g_snprintf(dev->id, sizeof(dev->id), "%s %s", &vendor[2], + &product[2]) >=3D sizeof(dev->id)) { virReportError(VIR_ERR_INTERNAL_ERROR, _("dev->id buffer overflow: %s %s"), &vendor[2], &product[2]); diff --git a/src/util/virpidfile.c b/src/util/virpidfile.c index 3e78735c9c..93b32a103d 100644 --- a/src/util/virpidfile.c +++ b/src/util/virpidfile.c @@ -68,7 +68,7 @@ int virPidFileWritePath(const char *pidfile, goto cleanup; } =20 - snprintf(pidstr, sizeof(pidstr), "%lld", (long long) pid); + g_snprintf(pidstr, sizeof(pidstr), "%lld", (long long) pid); =20 if (safewrite(fd, pidstr, strlen(pidstr)) < 0) { rc =3D -errno; @@ -392,7 +392,7 @@ int virPidFileAcquirePath(const char *path, /* Someone else must be racing with us, so try again */ } =20 - snprintf(pidstr, sizeof(pidstr), "%lld", (long long) pid); + g_snprintf(pidstr, sizeof(pidstr), "%lld", (long long) pid); =20 if (ftruncate(fd, 0) < 0) { virReportSystemError(errno, diff --git a/src/util/virtime.c b/src/util/virtime.c index 6f978d7c64..701b2f085a 100644 --- a/src/util/virtime.c +++ b/src/util/virtime.c @@ -209,11 +209,11 @@ int virTimeStringThenRaw(unsigned long long when, cha= r *buf) fields.tm_year +=3D 1900; fields.tm_mon +=3D 1; =20 - if (snprintf(buf, VIR_TIME_STRING_BUFLEN, - "%4d-%02d-%02d %02d:%02d:%02d.%03d+0000", - fields.tm_year, fields.tm_mon, fields.tm_mday, - fields.tm_hour, fields.tm_min, fields.tm_sec, - (int) (when % 1000)) >=3D VIR_TIME_STRING_BUFLEN) { + if (g_snprintf(buf, VIR_TIME_STRING_BUFLEN, + "%4d-%02d-%02d %02d:%02d:%02d.%03d+0000", + fields.tm_year, fields.tm_mon, fields.tm_mday, + fields.tm_hour, fields.tm_min, fields.tm_sec, + (int) (when % 1000)) >=3D VIR_TIME_STRING_BUFLEN) { errno =3D ERANGE; return -1; } diff --git a/src/util/virusb.c b/src/util/virusb.c index 7ce582085f..a2562b7ea8 100644 --- a/src/util/virusb.c +++ b/src/util/virusb.c @@ -319,8 +319,8 @@ virUSBDeviceNew(unsigned int bus, dev->bus =3D bus; dev->dev =3D devno; =20 - if (snprintf(dev->name, sizeof(dev->name), "%.3d:%.3d", - dev->bus, dev->dev) >=3D sizeof(dev->name)) { + if (g_snprintf(dev->name, sizeof(dev->name), "%.3d:%.3d", + dev->bus, dev->dev) >=3D sizeof(dev->name)) { virReportError(VIR_ERR_INTERNAL_ERROR, _("dev->name buffer overflow: %.3d:%.3d"), dev->bus, dev->dev); @@ -337,8 +337,8 @@ virUSBDeviceNew(unsigned int bus, } =20 /* XXX fixme. this should be product/vendor */ - if (snprintf(dev->id, sizeof(dev->id), "%d %d", dev->bus, - dev->dev) >=3D sizeof(dev->id)) { + if (g_snprintf(dev->id, sizeof(dev->id), "%d %d", dev->bus, + dev->dev) >=3D sizeof(dev->id)) { virReportError(VIR_ERR_INTERNAL_ERROR, _("dev->id buffer overflow: %d %d"), dev->bus, dev->dev); diff --git a/src/util/viruuid.c b/src/util/viruuid.c index 8930a0e199..7626d72c23 100644 --- a/src/util/viruuid.c +++ b/src/util/viruuid.c @@ -153,12 +153,12 @@ virUUIDParse(const char *uuidstr, unsigned char *uuid) const char * virUUIDFormat(const unsigned char *uuid, char *uuidstr) { - snprintf(uuidstr, VIR_UUID_STRING_BUFLEN, - "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x= %02x%02x", - uuid[0], uuid[1], uuid[2], uuid[3], - uuid[4], uuid[5], uuid[6], uuid[7], - uuid[8], uuid[9], uuid[10], uuid[11], - uuid[12], uuid[13], uuid[14], uuid[15]); + g_snprintf(uuidstr, VIR_UUID_STRING_BUFLEN, + "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%0= 2x%02x%02x", + uuid[0], uuid[1], uuid[2], uuid[3], + uuid[4], uuid[5], uuid[6], uuid[7], + uuid[8], uuid[9], uuid[10], uuid[11], + uuid[12], uuid[13], uuid[14], uuid[15]); uuidstr[VIR_UUID_STRING_BUFLEN-1] =3D '\0'; return uuidstr; } diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index 0bd47e3ddb..1b3160d112 100644 --- a/src/vbox/vbox_common.c +++ b/src/vbox/vbox_common.c @@ -1288,14 +1288,14 @@ vboxAttachNetwork(virDomainDefPtr def, vboxDriverPt= r data, IMachine *machine) PRUnichar *MACAddress =3D NULL; =20 virMacAddrFormat(&def->nets[i]->mac, macaddr); - snprintf(macaddrvbox, VIR_MAC_STRING_BUFLEN - 5, - "%02X%02X%02X%02X%02X%02X", - def->nets[i]->mac.addr[0], - def->nets[i]->mac.addr[1], - def->nets[i]->mac.addr[2], - def->nets[i]->mac.addr[3], - def->nets[i]->mac.addr[4], - def->nets[i]->mac.addr[5]); + g_snprintf(macaddrvbox, VIR_MAC_STRING_BUFLEN - 5, + "%02X%02X%02X%02X%02X%02X", + def->nets[i]->mac.addr[0], + def->nets[i]->mac.addr[1], + def->nets[i]->mac.addr[2], + def->nets[i]->mac.addr[3], + def->nets[i]->mac.addr[4], + def->nets[i]->mac.addr[5]); macaddrvbox[VIR_MAC_STRING_BUFLEN - 6] =3D '\0'; =20 VIR_DEBUG("NIC(%zu): Type: %d", i, def->nets[i]->type); @@ -1786,15 +1786,15 @@ vboxAttachUSB(virDomainDefPtr def, vboxDriverPtr da= ta, IMachine *machine) continue; =20 if (def->hostdevs[i]->source.subsys.u.usb.vendor) { - snprintf(vendorId, sizeof(vendorId), "%x", - def->hostdevs[i]->source.subsys.u.usb.vendor); + g_snprintf(vendorId, sizeof(vendorId), "%x", + def->hostdevs[i]->source.subsys.u.usb.vendor); VBOX_UTF8_TO_UTF16(vendorId, &vendorIdUtf16); gVBoxAPI.UIUSBDeviceFilter.SetVendorId(filter, vendorIdUtf16); VBOX_UTF16_FREE(vendorIdUtf16); } if (def->hostdevs[i]->source.subsys.u.usb.product) { - snprintf(productId, sizeof(productId), "%x", - def->hostdevs[i]->source.subsys.u.usb.product); + g_snprintf(productId, sizeof(productId), "%x", + def->hostdevs[i]->source.subsys.u.usb.product); VBOX_UTF8_TO_UTF16(productId, &productIdUtf16); gVBoxAPI.UIUSBDeviceFilter.SetProductId(filter, productIdUtf16); diff --git a/src/vbox/vbox_tmpl.c b/src/vbox/vbox_tmpl.c index a5a907768b..872825d86f 100644 --- a/src/vbox/vbox_tmpl.c +++ b/src/vbox/vbox_tmpl.c @@ -214,7 +214,7 @@ static PRUnichar *PRUnicharFromInt(PCVBOXXPCOM pFuncs, = int n) { PRUnichar *strUtf16 =3D NULL; char s[24]; =20 - snprintf(s, sizeof(s), "%d", n); + g_snprintf(s, sizeof(s), "%d", n); =20 pFuncs->pfnUtf8ToUtf16(s, &strUtf16); =20 diff --git a/src/vmx/vmx.c b/src/vmx/vmx.c index 2cd6fc6049..0ccc4eefe6 100644 --- a/src/vmx/vmx.c +++ b/src/vmx/vmx.c @@ -500,7 +500,7 @@ def->parallels[0]... #define VIR_FROM_THIS VIR_FROM_NONE =20 #define VMX_BUILD_NAME_EXTRA(_suffix, _extra) \ - snprintf(_suffix##_name, sizeof(_suffix##_name), "%s."_extra, prefix); + g_snprintf(_suffix##_name, sizeof(_suffix##_name), "%s."_extra, prefix= ); =20 #define VMX_BUILD_NAME(_suffix) \ VMX_BUILD_NAME_EXTRA(_suffix, #_suffix) @@ -640,7 +640,7 @@ virVMXEscapeHex(const char *string, char escape, const = char *special) if (*tmp1 =3D=3D escape || strspn(tmp1, special) > 0) { *tmp2++ =3D escape; =20 - snprintf(tmp2, 3, "%02x", (unsigned int)*tmp1); + g_snprintf(tmp2, 3, "%02x", (unsigned int)*tmp1); =20 tmp2 +=3D 2; } else { @@ -1951,9 +1951,9 @@ virVMXParseSCSIController(virConfPtr conf, int contro= ller, bool *present, return -1; } =20 - snprintf(present_name, sizeof(present_name), "scsi%d.present", control= ler); - snprintf(virtualDev_name, sizeof(virtualDev_name), "scsi%d.virtualDev", - controller); + g_snprintf(present_name, sizeof(present_name), "scsi%d.present", contr= oller); + g_snprintf(virtualDev_name, sizeof(virtualDev_name), "scsi%d.virtualDe= v", + controller); =20 if (virVMXGetConfigBoolean(conf, present_name, present, false, true) <= 0) goto cleanup; @@ -2443,7 +2443,7 @@ int virVMXParseFileSystem(virConfPtr conf, int number= , virDomainFSDefPtr *def) return -1; } =20 - snprintf(prefix, sizeof(prefix), "sharedFolder%d", number); + g_snprintf(prefix, sizeof(prefix), "sharedFolder%d", number); =20 VMX_BUILD_NAME(present); VMX_BUILD_NAME(enabled); @@ -2548,7 +2548,7 @@ virVMXParseEthernet(virConfPtr conf, int controller, = virDomainNetDefPtr *def) return -1; } =20 - snprintf(prefix, sizeof(prefix), "ethernet%d", controller); + g_snprintf(prefix, sizeof(prefix), "ethernet%d", controller); =20 VMX_BUILD_NAME(present); VMX_BUILD_NAME(startConnected); @@ -2753,7 +2753,7 @@ virVMXParseSerial(virVMXContext *ctx, virConfPtr conf= , int port, return -1; } =20 - snprintf(prefix, sizeof(prefix), "serial%d", port); + g_snprintf(prefix, sizeof(prefix), "serial%d", port); =20 VMX_BUILD_NAME(present); VMX_BUILD_NAME(startConnected); @@ -2930,7 +2930,7 @@ virVMXParseParallel(virVMXContext *ctx, virConfPtr co= nf, int port, return -1; } =20 - snprintf(prefix, sizeof(prefix), "parallel%d", port); + g_snprintf(prefix, sizeof(prefix), "parallel%d", port); =20 VMX_BUILD_NAME(present); VMX_BUILD_NAME(startConnected); diff --git a/src/vz/vz_driver.c b/src/vz/vz_driver.c index f3cd919086..6b925653d5 100644 --- a/src/vz/vz_driver.c +++ b/src/vz/vz_driver.c @@ -3453,8 +3453,8 @@ vzDomainGetJobStats(virDomainPtr domain, #define VZ_ADD_STAT_PARAM_UUL(group, field, counter) \ do { \ if (stat.field !=3D -1) { \ - snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, \ - group ".%zu." counter, i); \ + g_snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, \ + group ".%zu." counter, i); \ if (virTypedParamsAddULLong(&record->params, \ &record->nparams, \ maxparams, \ @@ -3490,8 +3490,8 @@ vzDomainGetBlockStats(virDomainObjPtr dom, IS_CT(dom->def)) < 0) return -1; =20 - snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, - "block.%zu.name", i); + g_snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, + "block.%zu.name", i); if (virTypedParamsAddString(&record->params, &record->nparams, maxparams, @@ -3500,8 +3500,8 @@ vzDomainGetBlockStats(virDomainObjPtr dom, return -1; =20 if (virStorageSourceIsLocalStorage(disk->src) && disk->src->path) { - snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, - "block.%zu.path", i); + g_snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, + "block.%zu.path", i); if (virTypedParamsAddString(&record->params, &record->nparams, maxparams, @@ -3516,8 +3516,8 @@ vzDomainGetBlockStats(virDomainObjPtr dom, VZ_ADD_STAT_PARAM_UUL("block", wr_bytes, "wr.bytes"); =20 if (disk->device =3D=3D VIR_DOMAIN_DISK_DEVICE_DISK) { - snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, - "block.%zu.capacity", i); + g_snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, + "block.%zu.capacity", i); if (virTypedParamsAddULLong(&record->params, &record->nparams, maxparams, @@ -3555,7 +3555,7 @@ vzDomainGetNetStats(virDomainObjPtr dom, &stat) < 0) return -1; =20 - snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, "net.%zu.name",= i); + g_snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, "net.%zu.name= ", i); if (virTypedParamsAddString(&record->params, &record->nparams, maxparams, @@ -3600,7 +3600,7 @@ vzDomainGetVCPUStats(virDomainObjPtr dom, VIR_VCPU_OFFLINE; unsigned long long time; =20 - snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, "vcpu.%zu.state= ", i); + g_snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, "vcpu.%zu.sta= te", i); if (virTypedParamsAddInt(&record->params, &record->nparams, maxparams, @@ -3611,7 +3611,7 @@ vzDomainGetVCPUStats(virDomainObjPtr dom, if (prlsdkGetVcpuStats(privdom->stats, i, &time) < 0) return -1; =20 - snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, "vcpu.%zu.time"= , i); + g_snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, "vcpu.%zu.tim= e", i); if (virTypedParamsAddULLong(&record->params, &record->nparams, maxparams, diff --git a/src/vz/vz_sdk.c b/src/vz/vz_sdk.c index 76165290b8..0daffb6844 100644 --- a/src/vz/vz_sdk.c +++ b/src/vz/vz_sdk.c @@ -3171,10 +3171,10 @@ static int prlsdkAddSerial(PRL_HANDLE sdkdom, virDo= mainChrDefPtr chr) =20 static const char * prlsdkFormatMac(virMacAddrPtr mac, char *macstr) { - snprintf(macstr, PRL_MAC_STRING_BUFNAME, - "%02X%02X%02X%02X%02X%02X", - mac->addr[0], mac->addr[1], mac->addr[2], - mac->addr[3], mac->addr[4], mac->addr[5]); + g_snprintf(macstr, PRL_MAC_STRING_BUFNAME, + "%02X%02X%02X%02X%02X%02X", + mac->addr[0], mac->addr[1], mac->addr[2], + mac->addr[3], mac->addr[4], mac->addr[5]); macstr[PRL_MAC_STRING_BUFNAME - 1] =3D '\0'; return macstr; } diff --git a/tests/libxlmock.c b/tests/libxlmock.c index 4476cf728f..38302b2ae8 100644 --- a/tests/libxlmock.c +++ b/tests/libxlmock.c @@ -99,7 +99,7 @@ VIR_MOCK_IMPL_RET_ARGS(virFileMakePath, int, { /* replace log path with a writable directory */ if (strstr(path, "/log/")) { - snprintf((char*)path, strlen(path), "."); + g_snprintf((char*)path, strlen(path), "."); return 0; } return real_virFileMakePath(path); diff --git a/tests/qemuagenttest.c b/tests/qemuagenttest.c index e767e6c0f6..9dbbfb3cfe 100644 --- a/tests/qemuagenttest.c +++ b/tests/qemuagenttest.c @@ -1111,8 +1111,8 @@ checkUserInfo(virTypedParameterPtr params, const char *domain =3D NULL; unsigned long long logintime =3D 0; =20 - snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, - "user.%zu.name", nth); + g_snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, + "user.%zu.name", nth); if (virTypedParamsGetString(params, nparams, param_name, &username) < = 0) return -1; =20 @@ -1123,8 +1123,8 @@ checkUserInfo(virTypedParameterPtr params, return -1; } =20 - snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, - "user.%zu.domain", nth); + g_snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, + "user.%zu.domain", nth); if (virTypedParamsGetString(params, nparams, param_name, &domain) < 0) return -1; =20 @@ -1135,8 +1135,8 @@ checkUserInfo(virTypedParameterPtr params, return -1; } =20 - snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, - "user.%zu.login-time", nth); + g_snprintf(param_name, VIR_TYPED_PARAM_FIELD_LENGTH, + "user.%zu.login-time", nth); if (virTypedParamsGetULLong(params, nparams, param_name, &logintime) <= 0) return -1; =20 diff --git a/tests/testutils.c b/tests/testutils.c index a3bedd0fef..2ae93b212d 100644 --- a/tests/testutils.c +++ b/tests/testutils.c @@ -1188,7 +1188,7 @@ const char /* calculate length of the rest of the string */ len -=3D (virtTestCounterPrefixEndOffset - virtTestCounterStr); =20 - snprintf(virtTestCounterPrefixEndOffset, len, "%d", ++virtTestCounter); + g_snprintf(virtTestCounterPrefixEndOffset, len, "%d", ++virtTestCounte= r); =20 return virtTestCounterStr; } diff --git a/tests/virnetsockettest.c b/tests/virnetsockettest.c index 4e9f201e45..951d01be70 100644 --- a/tests/virnetsockettest.c +++ b/tests/virnetsockettest.c @@ -211,7 +211,7 @@ testSocketAccept(const void *opaque) =20 cdata.path =3D path; } else { - snprintf(portstr, sizeof(portstr), "%d", data->port); + g_snprintf(portstr, sizeof(portstr), "%d", data->port); if (virNetSocketNewListenTCP(data->lnode, portstr, AF_UNSPEC, &lsock, &nlsock) < 0) diff --git a/tests/virpcimock.c b/tests/virpcimock.c index 7e4554a1dc..341afb385b 100644 --- a/tests/virpcimock.c +++ b/tests/virpcimock.c @@ -417,9 +417,9 @@ pci_device_create_iommu(const struct pciDevice *dev, if (virFileMakePath(iommuPath) < 0) ABORT("Unable to create: %s", iommuPath); =20 - if (snprintf(tmp, sizeof(tmp), - "../../../../devices/pci%04x:%02x/%s", - dev->addr.domain, dev->addr.bus, devid) < 0) { + if (g_snprintf(tmp, sizeof(tmp), + "../../../../devices/pci%04x:%02x/%s", + dev->addr.domain, dev->addr.bus, devid) < 0) { ABORT("@tmp overflow"); } =20 @@ -512,15 +512,15 @@ pci_device_new_from_stub(const struct pciDevice *data) make_file(devpath, "config", "some dummy config", -1); } =20 - if (snprintf(tmp, sizeof(tmp), "0x%.4x", dev->vendor) < 0) + if (g_snprintf(tmp, sizeof(tmp), "0x%.4x", dev->vendor) < 0) ABORT("@tmp overflow"); make_file(devpath, "vendor", tmp, -1); =20 - if (snprintf(tmp, sizeof(tmp), "0x%.4x", dev->device) < 0) + if (g_snprintf(tmp, sizeof(tmp), "0x%.4x", dev->device) < 0) ABORT("@tmp overflow"); make_file(devpath, "device", tmp, -1); =20 - if (snprintf(tmp, sizeof(tmp), "0x%.4x", dev->klass) < 0) + if (g_snprintf(tmp, sizeof(tmp), "0x%.4x", dev->klass) < 0) ABORT("@tmp overflow"); make_file(devpath, "class", tmp, -1); =20 @@ -528,15 +528,15 @@ pci_device_new_from_stub(const struct pciDevice *data) =20 pci_device_create_iommu(dev, devid); =20 - if (snprintf(tmp, sizeof(tmp), - "../../../kernel/iommu_groups/%d", dev->iommuGroup) < 0) { + if (g_snprintf(tmp, sizeof(tmp), + "../../../kernel/iommu_groups/%d", dev->iommuGroup) < 0= ) { ABORT("@tmp overflow"); } make_symlink(devpath, "iommu_group", tmp); =20 - if (snprintf(tmp, sizeof(tmp), - "../../../devices/pci%04x:%02x/%s", - dev->addr.domain, dev->addr.bus, devid) < 0) { + if (g_snprintf(tmp, sizeof(tmp), + "../../../devices/pci%04x:%02x/%s", + dev->addr.domain, dev->addr.bus, devid) < 0) { ABORT("@tmp overflow"); } =20 @@ -545,9 +545,9 @@ pci_device_new_from_stub(const struct pciDevice *data) make_symlink(devsympath, devid, tmp); =20 if (dev->physfn) { - if (snprintf(tmp, sizeof(tmp), - "%s%s/devices/%s", fakerootdir, - SYSFS_PCI_PREFIX, dev->physfn) < 0) { + if (g_snprintf(tmp, sizeof(tmp), + "%s%s/devices/%s", fakerootdir, + SYSFS_PCI_PREFIX, dev->physfn) < 0) { ABORT("@tmp overflow"); } make_symlink(devpath, "physfn", tmp); diff --git a/tests/virsystemdtest.c b/tests/virsystemdtest.c index b85259f61f..b5624241bb 100644 --- a/tests/virsystemdtest.c +++ b/tests/virsystemdtest.c @@ -564,8 +564,8 @@ testActivation(bool useNames) for (i =3D 0; i < nsockIP; i++) virBufferAddLit(&names, ":demo-ip.socket"); =20 - snprintf(nfdstr, sizeof(nfdstr), "%zu", 1 + nsockIP); - snprintf(pidstr, sizeof(pidstr), "%lld", (long long)getpid()); + g_snprintf(nfdstr, sizeof(nfdstr), "%zu", 1 + nsockIP); + g_snprintf(pidstr, sizeof(pidstr), "%lld", (long long)getpid()); =20 setenv("LISTEN_FDS", nfdstr, 1); setenv("LISTEN_PID", pidstr, 1); diff --git a/tools/virsh-domain-monitor.c b/tools/virsh-domain-monitor.c index 034c913d5e..c2f157ad6b 100644 --- a/tools/virsh-domain-monitor.c +++ b/tools/virsh-domain-monitor.c @@ -2003,7 +2003,7 @@ cmdList(vshControl *ctl, const vshCmd *cmd) dom =3D list->domains[i]; id =3D virDomainGetID(dom); if (id !=3D (unsigned int) -1) - snprintf(id_buf, sizeof(id_buf), "%d", id); + g_snprintf(id_buf, sizeof(id_buf), "%d", id); else ignore_value(virStrcpyStatic(id_buf, "-")); =20 diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 0feb21ef17..0b60bf59fb 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -12098,7 +12098,7 @@ virshDomainDetachInterface(char *doc, goto cleanup; } =20 - snprintf(buf, sizeof(buf), "/domain/devices/interface[@type=3D'%s']", = type); + g_snprintf(buf, sizeof(buf), "/domain/devices/interface[@type=3D'%s']"= , type); obj =3D xmlXPathEval(BAD_CAST buf, ctxt); if (obj =3D=3D NULL || obj->type !=3D XPATH_NODESET || obj->nodesetval =3D=3D NULL || obj->nodesetval->nodeNr =3D=3D 0) { diff --git a/tools/virt-host-validate-common.c b/tools/virt-host-validate-c= ommon.c index af8def21f3..bce0f14917 100644 --- a/tools/virt-host-validate-common.c +++ b/tools/virt-host-validate-common.c @@ -172,7 +172,7 @@ int virHostValidateNamespace(const char *hvname, virHostMsgCheck(hvname, "for namespace %s", ns_name); char nspath[100]; =20 - snprintf(nspath, sizeof(nspath), "/proc/self/ns/%s", ns_name); + g_snprintf(nspath, sizeof(nspath), "/proc/self/ns/%s", ns_name); =20 if (access(nspath, F_OK) < 0) { virHostMsgFail(level, "%s", hint); diff --git a/tools/virt-login-shell.c b/tools/virt-login-shell.c index 7d1e0ccc8a..e0d6a30ce8 100644 --- a/tools/virt-login-shell.c +++ b/tools/virt-login-shell.c @@ -81,8 +81,8 @@ int main(int argc, char **argv) { exit(EXIT_FAILURE); } =20 - assert(snprintf(uidstr, sizeof(uidstr), "%d", getuid()) < sizeof(uidst= r)); - assert(snprintf(gidstr, sizeof(gidstr), "%d", getgid()) < sizeof(gidst= r)); + assert(g_snprintf(uidstr, sizeof(uidstr), "%d", getuid()) < sizeof(uid= str)); + assert(g_snprintf(gidstr, sizeof(gidstr), "%d", getgid()) < sizeof(gid= str)); =20 if (setuid(0) < 0) { fprintf(stderr, "%s: unable to set real UID to root: %s\n", diff --git a/tools/vsh-table.c b/tools/vsh-table.c index c2271a4e2d..9008b0d431 100644 --- a/tools/vsh-table.c +++ b/tools/vsh-table.c @@ -227,7 +227,7 @@ vshTableSafeEncode(const char *s, size_t *width) while (p && *p) { if ((*p =3D=3D '\\' && *(p + 1) =3D=3D 'x') || c_iscntrl(*p)) { - snprintf(buf, HEX_ENCODE_LENGTH + 1, "\\x%02x", *p); + g_snprintf(buf, HEX_ENCODE_LENGTH + 1, "\\x%02x", *p); buf +=3D HEX_ENCODE_LENGTH; *width +=3D HEX_ENCODE_LENGTH; p++; @@ -245,7 +245,7 @@ vshTableSafeEncode(const char *s, size_t *width) * printable char according to the current locales. */ if (!c_isprint(*p)) { - snprintf(buf, HEX_ENCODE_LENGTH + 1, "\\x%02x", *p); + g_snprintf(buf, HEX_ENCODE_LENGTH + 1, "\\x%02x", *p); buf +=3D HEX_ENCODE_LENGTH; *width +=3D HEX_ENCODE_LENGTH; } else { @@ -255,7 +255,7 @@ vshTableSafeEncode(const char *s, size_t *width) } else if (!iswprint(wc)) { size_t i; for (i =3D 0; i < len; i++) { - snprintf(buf, HEX_ENCODE_LENGTH + 1, "\\x%02x", p[i]); + g_snprintf(buf, HEX_ENCODE_LENGTH + 1, "\\x%02x", p[i]= ); buf +=3D HEX_ENCODE_LENGTH; *width +=3D HEX_ENCODE_LENGTH; } diff --git a/tools/vsh.c b/tools/vsh.c index 000cf6a009..26ee4a3fe4 100644 --- a/tools/vsh.c +++ b/tools/vsh.c @@ -719,24 +719,24 @@ vshCmddefHelp(vshControl *ctl, const vshCmdDef *def) for (opt =3D def->opts; opt->name; opt++) { switch (opt->type) { case VSH_OT_BOOL: - snprintf(buf, sizeof(buf), "--%s", opt->name); + g_snprintf(buf, sizeof(buf), "--%s", opt->name); break; case VSH_OT_INT: - snprintf(buf, sizeof(buf), - (opt->flags & VSH_OFLAG_REQ) ? _("[--%s] = ") - : _("--%s "), opt->name); + g_snprintf(buf, sizeof(buf), + (opt->flags & VSH_OFLAG_REQ) ? _("[--%s] ") + : _("--%s "), opt->name); break; case VSH_OT_STRING: - snprintf(buf, sizeof(buf), _("--%s "), opt->name); + g_snprintf(buf, sizeof(buf), _("--%s "), opt->name= ); break; case VSH_OT_DATA: - snprintf(buf, sizeof(buf), _("[--%s] "), - opt->name); + g_snprintf(buf, sizeof(buf), _("[--%s] "), + opt->name); break; case VSH_OT_ARGV: - snprintf(buf, sizeof(buf), - shortopt ? _("[--%s] ") : _("<%s>"), - opt->name); + g_snprintf(buf, sizeof(buf), + shortopt ? _("[--%s] ") : _("<%s>"), + opt->name); break; case VSH_OT_ALIAS: continue; @@ -2690,7 +2690,7 @@ vshReadlineOptionsGenerator(const char *text, =20 name_len =3D strlen(name); ret[ret_size] =3D vshMalloc(NULL, name_len + 3); - snprintf(ret[ret_size], name_len + 3, "--%s", name); + g_snprintf(ret[ret_size], name_len + 3, "--%s", name); ret_size++; /* Terminate the string list properly. */ ret[ret_size] =3D NULL; diff --git a/tools/wireshark/src/packet-libvirt.c b/tools/wireshark/src/pac= ket-libvirt.c index 7096e72e67..20b7a3ec81 100644 --- a/tools/wireshark/src/packet-libvirt.c +++ b/tools/wireshark/src/packet-libvirt.c @@ -169,7 +169,7 @@ format_xdr_bytes(guint8 *bytes, guint32 length) for (i =3D 0; i < length; i++) { /* We know that buf has enough size to contain 2 * length + '\0' characters. */ - snprintf(buf, 2*(length - i) + 1, "%02x", bytes[i]); + g_snprintf(buf, 2*(length - i) + 1, "%02x", bytes[i]); buf +=3D 2; } return buf - length*2; --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Mon May 6 07:45:12 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 205.139.110.120 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=1573653654; cv=none; d=zoho.com; s=zohoarc; b=hacmL1nDaUkhzppA/0BKy9Opz/vgQMW3hP1cB9DwFLE7xywGzl+qKrmDtpRjTXcwGwNWi/TuaS1P4RRWFrLRL1xnN1Hu3lgNwXAvPSRLDMAQZ3BrK2ZTr8pYMb+HxLJikrvfTMYmFfwTCDEc4fjhixk/UD3qZHDjk6mohWw6qKw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1573653654; h=Content-Type:Content-Transfer-Encoding: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=IBNQemwZIV84pDwQbji2hNOvoIQVGoKVYBirUzx0APc=; b=HvT5FxjF/FO387G5FUD+yxn8FV15LKICPoAHrkRIc+wSrqkIqjBzFqTZkM3qf4srLH20HqE0xwrkXAZYQp4EYqPHmktr2vHHBQr28TF1pd6BdwJy/J89yvs2oB9EPaf04i/iZGBN9mC5/FG4QV4SOLamXHEuKCPxYpIg1AYnNDc= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1573653654211730.1241001770143; Wed, 13 Nov 2019 06:00:54 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-130-vzTPCMj8Oji1NST5hVgpdA-1; Wed, 13 Nov 2019 09:00:51 -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 197791005510; Wed, 13 Nov 2019 14:00:45 +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 D99795E253; Wed, 13 Nov 2019 14:00:44 +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 8321118089CE; Wed, 13 Nov 2019 14:00:44 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xADE0cwG010198 for ; Wed, 13 Nov 2019 09:00:38 -0500 Received: by smtp.corp.redhat.com (Postfix) id C92CC10246F7; Wed, 13 Nov 2019 14:00:38 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.43.2.149]) by smtp.corp.redhat.com (Postfix) with ESMTP id 53A8310246E3 for ; Wed, 13 Nov 2019 14:00:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573653653; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=IBNQemwZIV84pDwQbji2hNOvoIQVGoKVYBirUzx0APc=; b=Z9SJ7jD6KcH0s8Fx4QM7DPlcVOm9pqyUR94l97rABRtIIywF5L6TjPu/PY+EX3se3sRh0/ eUFf54tgUcEiD+tr+1hiSowpyuaoknx/vzWx3EVSR8xzQqEdXkeaKPmjZqdv06UOSPdD7O FCQl098sJMo4lwQyM6+sC1Mt+iHR1jg= From: Pavel Hrdina To: libvir-list@redhat.com Date: Wed, 13 Nov 2019 15:00:32 +0100 Message-Id: <994e0f62b7d09a440f57ffaaee3c9fea8557e34b.1573653592.git.phrdina@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH 2/2] bootstrap.conf: remove usage of snprintf gnulib module 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 X-MC-Unique: vzTPCMj8Oji1NST5hVgpdA-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina --- bootstrap.conf | 1 - 1 file changed, 1 deletion(-) diff --git a/bootstrap.conf b/bootstrap.conf index 4c784487e2..747040a1a3 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -74,7 +74,6 @@ setenv setsockopt sigaction sigpipe -snprintf socket stat-time strchrnul --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list