From nobody Tue Feb 10 10:03:56 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1621280966; cv=none; d=zohomail.com; s=zohoarc; b=Sz3mrDMkhVddFw8kE/74nc7hxqCU3f8qBDdXhUjpyr8mPGN5vUoLiHG8Gw2qxIJbMy0QZjOSaLhZOoyhOZpUZ7+FPOTHaVGkKKXNCVNEzi1F47J1nfZ3mULliSO7JQTNEdNCd2Lc3VhFDjNPm0VpbGVkiRNJhWlfGpdUO16cvVk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1621280966; 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=hsaiDxbqpwYWGsX+2+E/1txUmGlGieMY5ZjD//JBUS8=; b=GaGk8TaQVaZxITOapvI2WBTnIHrmEcfGeqAlK0SWjGNwAkRj3vR61USQVtwThZg5lw4xtd3tj0NJON+pD5lZq8MzYVQymp7dFG2q6UwZqOqfiRHdT9D6KoyaXhWQ0xSSOLnTtGfAPOS7CZ/ZZg0vnahagRWwQveNGRqRpwSu734= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1621280966631286.8730861455698; Mon, 17 May 2021 12:49:26 -0700 (PDT) Received: from localhost ([::1]:37534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lijEz-0002EL-Iz for importer@patchew.org; Mon, 17 May 2021 15:49:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lijDZ-0000kh-VL for qemu-devel@nongnu.org; Mon, 17 May 2021 15:47:57 -0400 Received: from mailout08.t-online.de ([194.25.134.20]:48610) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lijDY-0001W0-A1 for qemu-devel@nongnu.org; Mon, 17 May 2021 15:47:57 -0400 Received: from fwd07.aul.t-online.de (fwd07.aul.t-online.de [172.20.27.150]) by mailout08.t-online.de (Postfix) with SMTP id 104F924256; Mon, 17 May 2021 21:46:13 +0200 (CEST) Received: from linpower.localnet (V+dS4GZCrhCyGj3kZKOEFqwg2BtgW3IPe5z3NTs9uYCmlsbdFqslvMs6-VLxXvvZcd@[79.208.18.63]) by fwd07.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1lijBs-1JKtua0; Mon, 17 May 2021 21:46:12 +0200 Received: by linpower.localnet (Postfix, from userid 1000) id 5F868200624; Mon, 17 May 2021 21:46:04 +0200 (CEST) From: =?UTF-8?q?Volker=20R=C3=BCmelin?= To: Gerd Hoffmann Subject: [PATCH 4/4] jackaudio: avoid that the client name contains the word (NULL) Date: Mon, 17 May 2021 21:46:04 +0200 Message-Id: <20210517194604.2545-4-vr_qemu@t-online.de> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ID: V+dS4GZCrhCyGj3kZKOEFqwg2BtgW3IPe5z3NTs9uYCmlsbdFqslvMs6-VLxXvvZcd X-TOI-EXPURGATEID: 150726::1621280772-00011901-9D786454/0/0 CLEAN NORMAL X-TOI-MSGID: 45367512-1a9c-469f-97ae-238f1e15d73f Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=194.25.134.20; envelope-from=volker.ruemelin@t-online.de; helo=mailout08.t-online.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Currently with jackaudio client name and qemu guest name unset, the JACK client names are out-(NULL) and in-(NULL). These names are user visible in the patch bay. Replace the function call to qemu_get_vm_name() with a call to audio_application_name() which replaces NULL with "qemu" to have more descriptive names. Signed-off-by: Volker R=C3=BCmelin --- audio/jackaudio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/audio/jackaudio.c b/audio/jackaudio.c index 3031c4e29b..e7de6d5433 100644 --- a/audio/jackaudio.c +++ b/audio/jackaudio.c @@ -26,7 +26,6 @@ #include "qemu/module.h" #include "qemu/atomic.h" #include "qemu/main-loop.h" -#include "qemu-common.h" #include "audio.h" =20 #define AUDIO_CAP "jack" @@ -412,7 +411,7 @@ static int qjack_client_init(QJackClient *c) =20 snprintf(client_name, sizeof(client_name), "%s-%s", c->out ? "out" : "in", - c->opt->client_name ? c->opt->client_name : qemu_get_vm_name()); + c->opt->client_name ? c->opt->client_name : audio_application_name= ()); =20 if (c->opt->exact_name) { options |=3D JackUseExactName; --=20 2.26.2