From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942893AbcJ0QMf (ORCPT ); Thu, 27 Oct 2016 12:12:35 -0400 Received: from smtprelay0100.hostedemail.com ([216.40.44.100]:50530 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934564AbcJ0QM2 (ORCPT ); Thu, 27 Oct 2016 12:12:28 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1538:1568:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2691:2828:3138:3139:3140:3141:3142:3622:3865:3868:3872:3874:4321:5007:8603:10004:10400:10848:11026:11232:11658:11914:12296:12663:12679:12740:12760:13069:13311:13357:13439:14659:14721:21080:21212:21220:21451:30054:30064:30070:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: plant81_6b70327c8e95c X-Filterd-Recvd-Size: 1678 Message-ID: <1477584737.30917.1.camel@perches.com> Subject: Re: [PATCH 3/4] printk/btrfs: Handle more message headers From: Joe Perches To: Petr Mladek , Linus Torvalds Cc: Andrew Morton , Sergey Senozhatsky , Steven Rostedt , Jason Wessel , Jaroslav Kysela , Takashi Iwai , Chris Mason , Josef Bacik , David Sterba , linux-kernel@vger.kernel.org Date: Thu, 27 Oct 2016 09:12:17 -0700 In-Reply-To: <1477583574-30988-4-git-send-email-pmladek@suse.com> References: <1477583574-30988-1-git-send-email-pmladek@suse.com> <1477583574-30988-4-git-send-email-pmladek@suse.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.1-0ubuntu2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2016-10-27 at 17:52 +0200, Petr Mladek wrote: > Note that 3 bytes should be enough for the header buffer. I am not > sure where the 4 bytes came from. Maybe it expected that both > KERN_SOH and the log level strings end with '\0' but they > are concatenated. I believe it was from when KERN_ was ascii "<[0-7]>" and not KERN_SOH "[0-7]". I just didn't change the size. see: commit e2aed8dfa50b ("btrfs: use printk_get_level and printk_skip_level, add __printf, fix fallout")