Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751276Ab0LFFoZ (ORCPT ); Mon, 6 Dec 2010 00:44:25 -0500 Received: from mail.perches.com ([173.55.12.10]:2264 "EHLO mail.perches.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750733Ab0LFFoY (ORCPT ); Mon, 6 Dec 2010 00:44:24 -0500 From: Joe Perches To: Andrew Morton Cc: Paul Gortmaker , Matt Mackall , David Woodhouse , linux-embedded@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/7] printk: add pr__once, guard print_hex_dump Date: Sun, 5 Dec 2010 21:44:14 -0800 Message-Id: X-Mailer: git-send-email 1.7.3.2.245.g03276.dirty Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1177 Lines: 27 There are many uses of printk_once(KERN_. Add pr__once macros to avoid printk_once(KERN_ pr_fmt(fmt). Add an #ifdef CONFIG_PRINTK for print_hex_dump and static inline void functions for the #else cases to reduce embedded code size. Neaten and organize the rest of the code. Joe Perches (7): include/linux/printk.h: Move console functions and variables together include/linux/printk.h: Use space after #define include/linux/printk.h: Use and neaten no_printk include/linux/printk.h: Add pr__once macros include/linux/printk.h lib/hexdump.c: Neatening and add CONFIG_PRINTK guard include/linux/printk.h: Organize printk_ratelimited macros include/linux/printk.h: Use tab not spaces for indent include/linux/printk.h | 247 +++++++++++++++++++++++++++++------------------- lib/hexdump.c | 2 + 2 files changed, 152 insertions(+), 97 deletions(-) -- 1.7.3.2.245.g03276.dirty -- 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/