Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3713740pxj; Tue, 1 Jun 2021 11:26:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6Zaxeo1Ydk19DcCb6ufGgkE8jHlJRzhOS6L4ujeMyHPEUXHi92nJEHkstklzB5wU4nmhc X-Received: by 2002:a05:6402:50d1:: with SMTP id h17mr35488439edb.199.1622572001300; Tue, 01 Jun 2021 11:26:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622572001; cv=none; d=google.com; s=arc-20160816; b=hllqVZoa0EelF/fWmDHg9HDL8ThJ9jBK64xawe5MQCLs6JB0cczW0rutri8N+Ucbcv R/QfpHq501K8fk4fDijhsn6HbtiCVrsoAgZNULAI6Xs1kiTLR5MDaL85PkRem7/ojbPZ uoBarvFwOQosiaacVJYfB4tqeFPXgBj3HQFoPqlnvkfyS2FClDEN1ezhJ5BEa1PPacWX Rje5wdryZDsvLeh43RoAE7kod5f4eU/94UhEWi1/rN3yCrbwDKi2lMdlTlWDdRRbXJUc iI1vrP2tCO9S6r+AGJ6T+XFuLKf9xCJrtcn65o4GKOT9YAz4QnizBYdhC5uBR8aH9tsN CVFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ygkZRpJtxBAyCydNU/Hc832/XMSlgUwkfRH5mV2uRBM=; b=J4+Iz6wi06yqgTUDMwjuGHnSeTbMgrn+tuy8uvSqRySLKmx1qU7F8gYdlbI7xRdAf+ kCAcS+6zw9bgl7kzS8DHHPKtiuRDwnjYkhyKHw8ErsTRqwC8LW2rixVUMt3DGjJCgm1x JHJajlq2KG0NFjmyTCRM75Wh75LeyqNJP9OhSDYGmdVDhg1DGUb+qivKS8VXODwYC2td sUEzGkIOD3eEVlgyTleFC6bF7QyS39vAcaVdW79MrwPUgOEB4GmwaByhiZoy3WY8trnx 1mAZo70UiUW4bwEW9SD85nPl80YQxFMFhWTfzfgCtD6JxHuB6xaqGdu08kcCIZuBofNa Z5gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="V5cR/uUP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r24si19828620ejy.134.2021.06.01.11.26.18; Tue, 01 Jun 2021 11:26:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="V5cR/uUP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234747AbhFASXx (ORCPT + 99 others); Tue, 1 Jun 2021 14:23:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234706AbhFASXu (ORCPT ); Tue, 1 Jun 2021 14:23:50 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D71C2C061574 for ; Tue, 1 Jun 2021 11:22:07 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id e22so20915pgv.10 for ; Tue, 01 Jun 2021 11:22:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ygkZRpJtxBAyCydNU/Hc832/XMSlgUwkfRH5mV2uRBM=; b=V5cR/uUPn4j+j/v3rnXqnTHLEL60rTQmpSJA/zTs+MosIrYnjqbhR1hO6pixmpGGIa MQOfqdXKl5yMDKpZ8OlVE5ulRRdCFBJgbYTTQVrwgmP4FEUSRisSB5Lcsdvanah4BRNB R2OGtp1GrfG0SURmkQuZiDCQe1GGe4uUsTmfo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ygkZRpJtxBAyCydNU/Hc832/XMSlgUwkfRH5mV2uRBM=; b=k0LgQ/XQ1Q+2HqJ+pR3u6UCBtmyFcmTYH2nyv+dugDRVFFW1bY2y226s1Zi0qQANzS KuvnHfNgPB/mCl2aEOmimQMHg61S5Gpvd+nDZ5/9d7Ng19zr4yO4J5/DMVUlnVOpfsZx bSViQlUzxN/ySroRgpHT4MQwoN+kg8GfbEYFRBiTz6NAN+Qr0OJLqMmZn8+MHItx9KTh 7jGCVaOjI6LRM93+eFbrCp+5d7cFldYdC411Ai9pMBmSPls8M4YSf8eA1k+8F/U1CQ7Y y/UzBWg0oEgY9AnWHhHED3imRbVHF1IJIcYdrJ1aJk1sDne04eCrowggfYPQNqQ4J97I ticQ== X-Gm-Message-State: AOAM533qE54nJUZiUHV2uhXeXFplItUKYNQ+5RH1lR/PfkNIOSFjBUqy px5kdiwIPVlg1sjwaw1BhjeUvHq+a5W6eA== X-Received: by 2002:a65:6884:: with SMTP id e4mr4457991pgt.71.1622571727493; Tue, 01 Jun 2021 11:22:07 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:201:ee82:b2a7:c8bd:18e7]) by smtp.gmail.com with ESMTPSA id g29sm14510982pgm.11.2021.06.01.11.22.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jun 2021 11:22:07 -0700 (PDT) From: Stephen Boyd To: Andrew Morton Cc: linux-kernel@vger.kernel.org, Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Vlastimil Babka , linux-mm@kvack.org, Petr Mladek , Joe Perches , Muchun Song Subject: [PATCH v3 2/4] slub: Actually use 'message' in restore_bytes() Date: Tue, 1 Jun 2021 11:22:00 -0700 Message-Id: <20210601182202.3011020-3-swboyd@chromium.org> X-Mailer: git-send-email 2.32.0.rc0.204.g9fa02ecfa5-goog In-Reply-To: <20210601182202.3011020-1-swboyd@chromium.org> References: <20210601182202.3011020-1-swboyd@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The message argument isn't used here. Let's pass the string to the printk message so that the developer can figure out what's happening, instead of guessing that a redzone is being restored, etc. Reviewed-by: Vlastimil Babka Acked-by: David Rientjes Reviewed-by: Muchun Song Signed-off-by: Stephen Boyd --- mm/slub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/slub.c b/mm/slub.c index 2f53e8a9c28e..6168b3ce1b3e 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -777,7 +777,7 @@ static void init_object(struct kmem_cache *s, void *object, u8 val) static void restore_bytes(struct kmem_cache *s, char *message, u8 data, void *from, void *to) { - slab_fix(s, "Restoring 0x%p-0x%p=0x%x\n", from, to - 1, data); + slab_fix(s, "Restoring %s 0x%p-0x%p=0x%x\n", message, from, to - 1, data); memset(from, data, to - from); } -- https://chromeos.dev