From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C0DD9284898 for ; Thu, 19 Feb 2026 18:37:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771526261; cv=none; b=kAoxmcmP7xPr+rNvFFNPoJZueVZCJQsFYncwggOhOI7855f6EzPdqZ4vb6LOb27PM8o7odvtY5ktuH4pkB1NHPkg+0yjPP9CnBDy5Ebr++x8K+c8eLP2jy6bMHTDM30mlSq/jU0+hQWDhz7A+hEuEJOeitG4/cvwradVRusBW1Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771526261; c=relaxed/simple; bh=j/nwLwK3zdJR5/iGNTq8z4ihHjxOEL6Zsvhrs/ay9zc=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=p4xervyT5sAKvVKgMjsf7FiuUcuWkNRtRlPfrrM8l49vmpC38ojJ2XsqOVw9LtuW3x24EOXf6qnCmZtFvE1DbYSthv2jeIcdHAHNu270auYJyE6IFjOas6EmIBQsv/Op/NzGfhcQWi9wVI/IcJQboXrGMrFdcUJz5ejFsfKQm4g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=V51yFIuo; arc=none smtp.client-ip=209.85.128.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="V51yFIuo" Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4836f363d0dso11203605e9.3 for ; Thu, 19 Feb 2026 10:37:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1771526258; x=1772131058; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id:from:to :cc:subject:date:message-id:reply-to; bh=j/nwLwK3zdJR5/iGNTq8z4ihHjxOEL6Zsvhrs/ay9zc=; b=V51yFIuoiro69sSBTeSzKn+YI/258xXmJiYOzP22zAIUsmIyUrm1F3eW/4yGGunZr6 Sl1xexdqzfdylqSIGh5zU8uQ1d9szQpHMJUKSkCCxZIXX/SgWXtJg/2pvGMmU/Pz74qD Yflrmg7qrKqYAKMyAHTE0XXm6bcWkx7z135dIWSB9Hg2cBXm1UO9sAB8ipIZe5gMGEdH PBVXAwWCmr+BZuthd2i7eHnRxUkZqMt0NeC5Se+ZPcLDVJMXMgW3XljvjKOfIdNaC6fI xOR4IOYZu9GW+mcNvihi3OZu33G/bJbDYL3REJJDWgtqmJPdehlkO1BDO6pfCFFZdZSy KL9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771526258; x=1772131058; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=j/nwLwK3zdJR5/iGNTq8z4ihHjxOEL6Zsvhrs/ay9zc=; b=blMJlywKowdj/IyODEsH/3AELk/yBnCSZq2Hmoocu7d1HmQ9PdWdFcnGYfQUhIbiX5 Xx39PuLHtStZqK2hWdeNiuDz96q+krTgfkQ19CZknGg/v0N95/V5U3VlTwFhCTDQxhJU rglp/kNPo7pyknJWyri38o0w0x4IuIyDOn/avpgfu9dDtXdG/u4SodJu53sPLETpYDXD 2dnk8eC7norz4T2y2Ms9Ltu6G+vNTiywhOsHcdAxLwg73OWVKcIK+lhcgTqRemrUBqNG 6IZmcd+aJePjGJ+hjHOVpP085HORVZw2D0yfLI5DkZwI6+aWBcIPKMSQiLOdtClGrLUy 3I1Q== X-Forwarded-Encrypted: i=1; AJvYcCVOS9ZmrlR1qKXemNw2b5jMtoNN+33Sktj9fJUdyCTB8+ODNnaHAegMdSDPLxfGfYNBLE+waAxvBOGmffk=@vger.kernel.org X-Gm-Message-State: AOJu0YyhiSRN9QS/wGq8jXUMhDZTugELxjzT8Zlj1otmZMecLE3LGXlZ YMZ67IfBRjkIF8OCUyPiSJy9X8CcsXpf7aN9lNKbNUbEUNY/kUyJ/TQdSBbW7sXy3Rmy4W9YGAU M/kk1VMc= X-Gm-Gg: AZuq6aJ0jKKZKCIn4+ulOuCyz2qdYMA3ypAQ9bjLEO2tLVOa3862bWs1Xe1jaooSy7d s7VwsrxZmM0Eg8jA2a/CV2AYW4iteSDnhXIEjF1XE7BAVaKF2GUsga8+E+Orcr6n3JyOIk7Oq3v ooC/WM8ExDOXHMvaeiTDoVyC0FVcBzfiTJ7Lcqnb7uDIVknFxF1HV8j4Ff7t/R60VsbiMkSMhSq 9DJif+0TN72tkgSQN9BCuRrCscchuD0tsukBxa7scemMCBvFGKiOZC5lfVHD0KrKXriZRF+6VtE bp9GOnvDYQ0gjyxB5+C/z7+EqpFitLUS9V14s7i7/+5mECglX/hKkzXNnGrLMymrA03WzLX20An sUo10iXLjT+a8hIJ3pwwGxfIPNDdBvyp3uVrhP71OoHeFDhyud8/VmCkT6slizxE/6cz7/ZWu1a WQuUd1MWGJJy2viBoQCnm/J3vAP6i31i+qhBTS+OGarMFI+tUajS7tawq6R0foAw== X-Received: by 2002:a05:600c:609a:b0:483:7020:864 with SMTP id 5b1f17b1804b1-48379c178eamr342625685e9.25.1771526257986; Thu, 19 Feb 2026 10:37:37 -0800 (PST) Received: from ?IPv6:2804:5078:822:3100:58f2:fc97:371f:2? ([2804:5078:822:3100:58f2:fc97:371f:2]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-483a31b1d79sm45779975e9.3.2026.02.19.10.37.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Feb 2026 10:37:37 -0800 (PST) Message-ID: <88e81d6b04569029af8513ba03998772c8b0bb09.camel@suse.com> Subject: Re: [PATCH 2/8] printk: Rename preferred_console to preferred_dev_console From: Marcos Paulo de Souza To: Petr Mladek , John Ogness Cc: Sergey Senozhatsky , Steven Rostedt , Chris Down , linux-kernel@vger.kernel.org Date: Thu, 19 Feb 2026 15:37:33 -0300 In-Reply-To: <20260206165002.496724-3-pmladek@suse.com> References: <20260206165002.496724-1-pmladek@suse.com> <20260206165002.496724-3-pmladek@suse.com> Autocrypt: addr=mpdesouza@suse.com; prefer-encrypt=mutual; keydata=mDMEZ/0YqhYJKwYBBAHaRw8BAQdA4JZz0FED+JD5eKlhkNyjDrp6lAGmgR3LPTduPYGPT Km0Kk1hcmNvcyBQYXVsbyBkZSBTb3V6YSA8bXBkZXNvdXphQHN1c2UuY29tPoiTBBMWCgA7FiEE2g gC66iLbhUsCBoBemssEuRpLLUFAmf9GKoCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgk QemssEuRpLLWGxwD/S1I0bjp462FlKb81DikrOfWbeJ0FOJP44eRzmn20HmEBALBZIMrfIH2dJ5eM GO8seNG8sYiP6JfRjl7Hyqca6YsE Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.58.3 (by Flathub.org) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Fri, 2026-02-06 at 17:49 +0100, Petr Mladek wrote: > The preferred_consoles[] array stores information about consoles > requested > via the command line, SPCR, Device Tree, or platform-specific code. > Within this array, the 'preferred_console' variable tracks the > specific > index that should be associated with /dev/console (typically the last > non-braille console defined). >=20 > The current name "preferred_console" is ambiguous and leads to > confusion. > It does not clearly communicate why one console is "more preferred" > than > others in the array. Furthermore, entries for Braille consoles can > exist > within the preferred_consoles[] array, yet they are never associated > with > /dev/console and do not receive standard printk() output. > Consequently, > the 'preferred_console' index must skip these entries, which is not > immediately obvious from the name. >=20 > Rename the variable to 'preferred_dev_console' to explicitly clarify > its > role in identifying which entry is linked to /dev/console. >=20 > Signed-off-by: Petr Mladek > --- Acked-by: Marcos Paulo de Souza