Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp791715imm; Fri, 15 Jun 2018 06:23:45 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLfzRocxh2iFiWLYapqO7sWKsr258Pkdcg3Gpy6YTBkT/438/zPZjbwM7i+XjtEyYZlOG0B X-Received: by 2002:a17:902:a5cb:: with SMTP id t11-v6mr2045217plq.71.1529069025535; Fri, 15 Jun 2018 06:23:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529069025; cv=none; d=google.com; s=arc-20160816; b=Y8jUWmivKJSp6k+X4rSDFDWZ+P82kyzc15MH5agQ/7A4lsm1FScHFli7EEIHUaXPPr DQ5mTjawG9fov3GcWIgv6xFEVd5EgDUSHd010FCgKdJDezSp1+oZu8/5OaxSXKjX/J9U 51cP0yERB5pwFbxm6q2zTSohj0jYbsSCO/rhhzfezNTn2Q4FQVlJ0Nk/xwVtftXg/Y+i KrSn1L/K/KjPeqUIlxst2YojRTSU28v1ytp5fxMWRaPbpxAz3wm4i9p9j5yHe8A4VQnT yGNoTuMdkvUucqqpbWoO/3RFJ9FugaoQYTVq/EXCC/44QL95Zdqr2ZjrSGptatpdzosW E+Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=dmbUZ/pmkBc4A1SsebLFCxGIVjy4r4MQuAvdqoX3xtE=; b=dcMOQsH922bxAowYfcTJARUlB0cwUJp5Z9a4CpMhj40GDhwgIZ351NEY1cilXjtF1p aCGYlej7hXL5j5Gdk73EwClKXB/XDK8yXsA/avFpeCr25wjTNHLX6Exz87SHOSNRehH/ 6yd8dujUL95eEry/nZIL0vkRVGxkTWzuvKjoQiz9A0UX+ZBh0+OK1O4jiwb6gVQ+kk+r sr/A0FnPu1pJffraAuipwruYX+aRmHHYjODWHoiLbXBwBK4btcIX/Iy+ulsux05P3orA y5vgTEQaK60xaA+TJVbR4GLc7gzdhwAp3BlEx7z833JuLxj7jLoDB+klvT6QbmlGqKwg 3euQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l4-v6si7720424plt.497.2018.06.15.06.23.31; Fri, 15 Jun 2018 06:23:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965815AbeFONXA (ORCPT + 99 others); Fri, 15 Jun 2018 09:23:00 -0400 Received: from mx2.suse.de ([195.135.220.15]:42075 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933771AbeFONW7 (ORCPT ); Fri, 15 Jun 2018 09:22:59 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 6BC0CAB08; Fri, 15 Jun 2018 13:22:58 +0000 (UTC) Date: Fri, 15 Jun 2018 15:22:56 +0200 From: Petr Mladek To: Thierry Escande Cc: Andrew Morton , David Miller , Andy Shevchenko , Rasmus Villemoes , "Tobin C . Harding" , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] lib/test_printf.c: accept "ptrval" as valid result for plain 'p' tests Message-ID: <20180615132256.p4q6rbnkj7ngf2fu@pathway.suse.cz> References: <20180613171840.29827-1-thierry.escande@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180613171840.29827-1-thierry.escande@linaro.org> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 2018-06-13 19:18:40, Thierry Escande wrote: > If the test_printf module is loaded before the crng is initialized, the > plain 'p' tests will fail because the printed address will not be hashed > and the buffer will contain "(____ptrval____)" or "(ptrval)" instead > (64-bit vs 32-bit). > Since we cannot wait for the crng to be initialized for an undefined > time, both plain 'p' tests now accept the strings "(____ptrval____)" or > "(ptrval)" as a valid result and print a warning message. > > Signed-off-by: Thierry Escande Revieved-by: Petr Mladek I have pushed this into printk.git, branch for-4.19 Best Regards, Petr PS: The split into plain_hash() and plain_format() is weird and even confusing. They both just checks different halfs of the same output. It would make sense to merge them. It would also remove the duplicated code and warning. Anyone interested into sending a followup patch? ;-)