From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 445821BDA91; Tue, 27 Aug 2024 13:22:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724764934; cv=none; b=IiTmGW0vOvUjor2hXgZ4wVL4FESWadviDvz7X8lIBLSEoBc9zqW1NHQ8kwbZoN0UK7oIETxojsTFfvYP3uqVIMSkTH4+x1G2W0BVQ7LPhxweHacEvJeQszbCVhB3c9b87xrz374Kz8iL/0E/KqXw1nL0HYHz9BGyZ134WM41aCQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724764934; c=relaxed/simple; bh=mmintB9ndCfunLcL05i0iSaGGs9dzvdyankk1KB3g3Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=spPtt2KiiSbjREgyPjKnNecTac9fpmPKF5iGJ9QsDL96vzxwI2QowL8pZujZAdLbADAuQ9i8E6wK8cnX5rRqy/PnGWBQ7/zfRO1CMm2PiwbnZOnHORcrwCn6eMz3e1IgHkeNxfY6Sh79np6Gn7g56VrnJJcNYIW9m99IKYh0q/w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=gngz+sY9; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="gngz+sY9" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724764934; x=1756300934; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=mmintB9ndCfunLcL05i0iSaGGs9dzvdyankk1KB3g3Q=; b=gngz+sY9m1kejJsC29q1k8Xl9z6QvoXCrtoZ/C7n+JVa8pLN2jL+WEN1 T6m+wDrWPW2ewIneXQRVW6lh/q+i5J8iHEilfhmGDTqMlnxKHLrNYzrzX qml5az2L18aYnMffUGzV702Wy6+8bWyAAl6SNh5TPHoUxr/xwiavQ6THq vpe2hXLa8a5fPZ5MUYsboL9qNo3SJdtKKZGiJnIyzzB+EDanKcYYDb8vE p3Px9BYBUH4uX8+GciBQ1EOEV9qMhfP4tse+LaH8YAosvJOr5ozB0mVso L0rn9JhU0Yhr2IFr6qQnhr6eg8VQvV4tv5iYwJ/QwBETgp6L4jekjTatC A==; X-CSE-ConnectionGUID: IHx+mRYES3Omq5MxrAKTwg== X-CSE-MsgGUID: vS+rIVXXTWW/srasgvXxXw== X-IronPort-AV: E=McAfee;i="6700,10204,11176"; a="45759074" X-IronPort-AV: E=Sophos;i="6.10,180,1719903600"; d="scan'208";a="45759074" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Aug 2024 06:21:30 -0700 X-CSE-ConnectionGUID: v2v1nDK8QJ2yR5gnvtj3PA== X-CSE-MsgGUID: plyR9erVT++yURG7ogCnRQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,180,1719903600"; d="scan'208";a="62837678" Received: from smile.fi.intel.com ([10.237.72.54]) by orviesa009.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Aug 2024 06:21:25 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.98) (envelope-from ) id 1siw8O-00000002Gxk-3W05; Tue, 27 Aug 2024 16:21:20 +0300 Date: Tue, 27 Aug 2024 16:21:20 +0300 From: Andy Shevchenko To: Petr Mladek Cc: Ira Weiny , Dave Jiang , Fan Ni , Jonathan Cameron , Navneet Singh , Chris Mason , Josef Bacik , David Sterba , Steven Rostedt , Rasmus Villemoes , Sergey Senozhatsky , Jonathan Corbet , Andrew Morton , Dan Williams , Davidlohr Bueso , Alison Schofield , Vishal Verma , linux-btrfs@vger.kernel.org, linux-cxl@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, nvdimm@lists.linux.dev Subject: Re: [PATCH v3 02/25] printk: Add print format (%par) for struct range Message-ID: References: <20240816-dcd-type2-upstream-v3-0-7c9b96cba6d7@intel.com> <20240816-dcd-type2-upstream-v3-2-7c9b96cba6d7@intel.com> <66c77b1c5c65c_1719d2940@iweiny-mobl.notmuch> <66ccf10089b0_e0732294ef@iweiny-mobl.notmuch> Precedence: bulk X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Tue, Aug 27, 2024 at 09:43:32AM +0200, Petr Mladek wrote: > On Mon 2024-08-26 16:17:52, Ira Weiny wrote: > > Andy Shevchenko wrote: ... > But I could live with all other variants, except for %pn mentioned below. I believe %r is also no go as we most likely get a complier warning. ... > > Am I missing your point somehow? I considered cramming a struct range into a > > struct resource to let resource_string() process the data. But that would > > involve creating a new IORESOURCE_* flag (not ideal) and also does not allow > > for the larger u64 data in struct range should this be a 32 bit physical > > address config. > > This would be nasty. I believe that this is not what Andy meant. You are right, this is not what I meant. -- With Best Regards, Andy Shevchenko