Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753381AbaJLLtB (ORCPT ); Sun, 12 Oct 2014 07:49:01 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:35525 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753369AbaJLLs4 (ORCPT ); Sun, 12 Oct 2014 07:48:56 -0400 X-AuditID: cbfee690-f79ab6d0000046f7-05-543a6aa146bd From: Pintu Kumar To: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, hannes@cmpxchg.org, mgorman@suse.de, vdavydov@parallels.com, mhocko@suse.cz, suleiman@google.com Cc: cpgs@samsung.com, pintu.k@samsung.com, pintu_agarwal@yahoo.com, vishnu.ps@samsung.com, rohit.kr@samsung.com, iqbal.ams@samsung.com Subject: [PATCH] [mm]: vmscan: replace printk with pr_err Date: Sun, 12 Oct 2014 17:10:51 +0530 Message-id: <1413114051-10555-1-git-send-email-pintu.k@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBLMWRmVeSWpSXmKPExsWyRsSkSndhllWIwcF2DYs569ewWbw8pGmx epOvxexfk5gsLu+aw2Zxb81/VovJ754xWrxq/s5q0ff9MLvFt7e32S2eN7eyWGy9sY3V4vLW mcwWU/ruMjrweRx+857ZY8GmUo9Nnyaxe5yY8ZvF4+S8n2wefVtWMXqcWXCE3WPz6WqPz5vk PGbNOswUwBXFZZOSmpNZllqkb5fAlTGtL7RgCVvFidb7LA2M3axdjJwcEgImEreOTGOEsMUk Ltxbz9bFyMUhJLCUUaL142ommKKuxtfsEInpjBLHv75ihHB6mCTeHl4IVsUmoC7x481vsISI wFZGiYYzl9lBEswCHYwSMydxdTFycAgLWEp8na8NEmYRUJVYffklC0iYV8BZ4uJmaxBTQkBB Ys4kG4i9l9glnuxygqgWkPg2+RALRImsxKYDzBAlkhIHV9xgmcAouICRYRWjaGpBckFxUnq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mp2aWpBaBNPHxMEp1cBYtLdr963P szS0Nyrdfno4dunL5Ykr4re/fmuaEutw6n006+1nVR/yXXbx/TvJcdEv4doRVl61PVeSNVXZ ZFxXTGuyZ0g3Z9FcXz8jvrjrZs/Oo3e00ip4gg2urf/9kVl3sTvrzel7Dh0/LjGn6bzPU+cv f/4ZLbqbXdS5Sva6YorSzYpH7dOClFiKMxINtZiLihMBNubw+NYCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch replaces printk(KERN_ERR..) with pr_err found under shrink_slab. Thus it also reduces one line extra because of formatting. Signed-off-by: Pintu Kumar --- mm/vmscan.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index dcb4707..59605b7 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -260,8 +260,7 @@ shrink_slab_node(struct shrink_control *shrinkctl, struct shrinker *shrinker, do_div(delta, lru_pages + 1); total_scan += delta; if (total_scan < 0) { - printk(KERN_ERR - "shrink_slab: %pF negative objects to delete nr=%ld\n", + pr_err("shrink_slab: %pF negative objects to delete nr=%ld\n", shrinker->scan_objects, total_scan); total_scan = freeable; } -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/