From nobody Sun May 5 21:18:57 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1628667844; cv=none; d=zohomail.com; s=zohoarc; b=M8ZEqTDUVwaM62y2mD2/n1ib0gOTOFV35+82Esmv+20Ykhg7BwRY+0uQ4li3bE+2WmTHaoUKoMcIil5iMoiJq0JEBuMNRfIL7G1HBEXVBQBPPjSQx4NvWGCjySX5IpZbfqdOIpQPgg33k29vePjwxabIToG7rpTL5PjfvLGXLtA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1628667844; 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=SZR8WP984uU9d+6+rvJQPwvgkxLR0xXNJpvX0vEtZh0=; b=Njm7whCaAW825bQ9us/6zr/Qjdi/7LiHcyeUTOr95hTBiL+t79NYxWqZYEryjaS7sqVCpkQ30D7oC7o0bC4KW/Jx6CH0HFi28W/qHkl9Izc+GmUNa8us9lwA16yMhS19XgNqfPpSlQf+j0h2HSlQn0qazesQLyPidUeQMuY0594= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.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 [216.205.24.124]) by mx.zohomail.com with SMTPS id 1628667844772913.6515165218087; Wed, 11 Aug 2021 00:44:04 -0700 (PDT) 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-289--kt10-kSPPCd6naQsgF57Q-1; Wed, 11 Aug 2021 03:44:02 -0400 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 1C252108BC79; Wed, 11 Aug 2021 07:43:56 +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 1AB975D9C6; Wed, 11 Aug 2021 07:43:55 +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 AF639181A0F1; Wed, 11 Aug 2021 07:43:53 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 17B7eKBM011596 for ; Wed, 11 Aug 2021 03:40:20 -0400 Received: by smtp.corp.redhat.com (Postfix) id B1A9C27CAB; Wed, 11 Aug 2021 07:40:20 +0000 (UTC) Received: from hjs.redhat.com (unknown [10.43.2.53]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3515627CA8 for ; Wed, 11 Aug 2021 07:40:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1628667843; 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=SZR8WP984uU9d+6+rvJQPwvgkxLR0xXNJpvX0vEtZh0=; b=Y5ARrqrDhmKohDM9q1+d9hqWDCJD3KuT+rgpeInfHUqTjjetEaaiTySfuQw3K5TGSvq+FJ o3O+sZnqOMmDC3WJHrbMFMiytAdlOumOmHtjuRNqLIzq/vg7lSus4/HO+ziwXz3kb9jDC0 4e0Y73ao8wpeyI+y9F7Sihyf6yixbjs= X-MC-Unique: -kt10-kSPPCd6naQsgF57Q-1 From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH 3/5++] fixup: vshInitDebug Date: Wed, 11 Aug 2021 09:40:13 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com 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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1628667846834100003 Signed-off-by: J=C3=A1n Tomko --- tools/vsh.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/vsh.c b/tools/vsh.c index 1f384d4ea6..f9600bafba 100644 --- a/tools/vsh.c +++ b/tools/vsh.c @@ -2915,10 +2915,9 @@ static int vshInitDebug(vshControl *ctl) { const char *debugEnv; - g_autofree char *env =3D NULL; =20 if (ctl->debug =3D=3D VSH_DEBUG_DEFAULT) { - env =3D g_strdup_printf("%s_DEBUG", ctl->env_prefix); + g_autofree char *env =3D g_strdup_printf("%s_DEBUG", ctl->env_pref= ix); =20 /* log level not set from commandline, check env variable */ debugEnv =3D getenv(env); @@ -2935,7 +2934,7 @@ vshInitDebug(vshControl *ctl) } =20 if (ctl->logfile =3D=3D NULL) { - env =3D g_strdup_printf("%s_LOG_FILE", ctl->env_prefix); + g_autofree char *env =3D g_strdup_printf("%s_LOG_FILE", ctl->env_p= refix); =20 /* log file not set from cmdline */ debugEnv =3D getenv(env); --=20 2.31.1