From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 B03131FF60E; Thu, 17 Apr 2025 19:26:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744918008; cv=none; b=cNwOtiqV0Gd+DtAffqRKNIMRdeQ8F/TL1n4SBcjYPDvnJL60O/pheJAr1Zse6aepzNsOk+DeLt9063IFssEo1DqbDDzgGU9V2pvWqAIKnaywedMApoiK3nlryeehus6ZAAQzWXU9tNLRQo/ebRDu06rjoOdhnvr+GD0MooM2hvo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744918008; c=relaxed/simple; bh=IHPtnIfi6f8KDLDgve2g6vvQovf4Noy158Iwjuwgbyc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CAy4WWdeTpbIsuyLj5zJyEuRtwcCdwb+MWrgAx4CBEw5fmbTCzOm3cOvqi8K4AqV8rFIbvKQldMosEWlh+Tf3SaCkkD1GenmyQbjNdu9InzkQqcYXOE1moDl62BRSX4pq2uuveK9WUPXx9hLsFZvrqUeNh4GbKh084uo6AFcyuc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=eERAyV8S; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="eERAyV8S" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=H0l0O/+vPdquCSr+CZ01ghKfCZRXnYFO1/2RNrcPM6E=; b=eERAyV8SVTEuCyPmUKFRYdUaqi CxJb5Jk2qD0DJ0Mi6813LvSIVr7NQzIkMd1Tob/74fNY86xHTQ23DOrSYXKj3I32QsCD7NUK1tGz3 i4YEPddc7RmKioRMPLjH26PWhUVLsQfmarrXgSDhAnsUAAk4YppsbjTyPqBSCOcrhpwI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1u5Usd-009p7F-Ry; Thu, 17 Apr 2025 21:26:35 +0200 Date: Thu, 17 Apr 2025 21:26:35 +0200 From: Andrew Lunn To: Jeff Layton Cc: Andrew Morton , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman , Kuniyuki Iwashima , Qasim Ijaz , Nathan Chancellor , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH v3 3/8] ref_tracker: have callers pass output function to pr_ostream() Message-ID: <63f4d126-1ee1-47dd-9d72-aa2b13e124d4@lunn.ch> References: <20250417-reftrack-dbgfs-v3-0-c3159428c8fb@kernel.org> <20250417-reftrack-dbgfs-v3-3-c3159428c8fb@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@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: <20250417-reftrack-dbgfs-v3-3-c3159428c8fb@kernel.org> On Thu, Apr 17, 2025 at 09:11:06AM -0400, Jeff Layton wrote: > In a later patch, we'll be adding a 3rd mechanism for outputting > ref_tracker info via seq_file. Instead of a conditional, have the caller > set a pointer to an output function in struct ostream. As part of this, > the log prefix must be explicitly passed in, as it's too late for the > pr_fmt macro. > > Signed-off-by: Jeff Layton Reviewed-by: Andrew Lunn Andrew