From nobody Mon Dec 15 21:46:51 2025 Received: from out-185.mta0.migadu.com (out-185.mta0.migadu.com [91.218.175.185]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD3401E7C2E for ; Wed, 15 Jan 2025 09:02:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.185 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736931735; cv=none; b=ZZ0YJlBkdO7D3zoy6duUEXj/P+jiN3tAryILicubF9H9UY2hj1i6WsVdXBiS0aoY+igZTEF6gdsQM8xXzNp0mZJjNYPH3RTnZL+5CQ55YR6W7Ol/SeYizNyXCz2ZM9+/ZGssK+IqiLkpOyEMWfi0BXq3JoT3DGES0y/YBYkSNXY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736931735; c=relaxed/simple; bh=CQrI4BzikTg7apjUtFiQzuHnpuubBKdUNcE8Tkn+Q2Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ns4nEKjOZ6kFSdJh6ceQ1E3GeYN3MI0eDHNf1CthSd7gHwD8HqtkChAgrB8EhgRjbwOhtgBijI2mFnKPGjmro1EGO0PdXbpc5hGzYsJclXTCv8zXlhIs5oPgl5J//R7/iRsXEm35uv4L4dZm2pNEEpMjiU7+LzT6pqjMmNPJQEo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=J42W4+3N; arc=none smtp.client-ip=91.218.175.185 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="J42W4+3N" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1736931724; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=M4BhGmo3QK3F1Ae9T6Q9NLIvZWbckBEUJUup3x6bghs=; b=J42W4+3NS83dulomd6cy+5FVPd5G5im8MxofaQPIl9mI3WzR4tK17ospK5nhrEbkKE7WP2 +wqulD+LGTcTpcmzLwrul0D2v83JssaobF2iEUBZrMOeJ6/2w6LHlIRAB8p5JbJNZIgKYl GqlOYm+xvkEBBL27Jle9ZlqNn1Ab5JI= From: Thorsten Blum To: Huacai Chen , Jiaxun Yang , Thomas Bogendoerfer Cc: Thorsten Blum , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] MIPS: Loongson64: env: Use str_on_off() helper in prom_lefi_init_env() Date: Wed, 15 Jan 2025 10:01:35 +0100 Message-ID: <20250115090134.918023-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Remove hard-coded strings by using the str_on_off() helper function. Signed-off-by: Thorsten Blum --- arch/mips/loongson64/env.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/mips/loongson64/env.c b/arch/mips/loongson64/env.c index 09ff05269861..be8d2ad10750 100644 --- a/arch/mips/loongson64/env.c +++ b/arch/mips/loongson64/env.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include #include @@ -162,7 +163,7 @@ void __init prom_lefi_init_env(void) dma_default_coherent =3D !eirq_source->dma_noncoherent; } =20 - pr_info("Firmware: Coherent DMA: %s\n", dma_default_coherent ? "on" : "of= f"); + pr_info("Firmware: Coherent DMA: %s\n", str_on_off(dma_default_coherent)); =20 loongson_sysconf.restart_addr =3D boot_p->reset_system.ResetWarm; loongson_sysconf.poweroff_addr =3D boot_p->reset_system.Shutdown; --=20 2.47.1