From: Petr Mladek Date: Wed, 4 Jun 2014 23:11:31 +0000 (-0700) Subject: printk: split message size computation X-Git-Tag: omap-for-v3.16/fixes-against-rc1~56^2~16^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85c87043023b7e5535f975bbee12a4f5399df520;p=pandora-kernel.git printk: split message size computation We will want to recompute the message size when shrinking too long messages. Let's put the code into separate function. The side effect of setting "pad_len" is not nice but it is worth removing the code duplication. Note that I will probably have one more usage for this function when handling messages safe way in NMI context. This patch does not change the existing behavior. Signed-off-by: Petr Mladek Cc: Jan Kara Cc: Jiri Kosina Cc: Kay Sievers Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed