From patchwork Wed Mar 15 01:31:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hyeoncheol Lee X-Patchwork-Id: 9624685 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1F1A6604CC for ; Wed, 15 Mar 2017 01:34:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 100E0285ED for ; Wed, 15 Mar 2017 01:34:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 02102285F3; Wed, 15 Mar 2017 01:34:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8807A285ED for ; Wed, 15 Mar 2017 01:34:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750952AbdCOBdp (ORCPT ); Tue, 14 Mar 2017 21:33:45 -0400 Received: from LGEAMRELO11.lge.com ([156.147.23.51]:50628 "EHLO lgeamrelo11.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750774AbdCOBdo (ORCPT ); Tue, 14 Mar 2017 21:33:44 -0400 Received: from unknown (HELO lgeamrelo04.lge.com) (156.147.1.127) by 156.147.23.51 with ESMTP; 15 Mar 2017 10:33:41 +0900 X-Original-SENDERIP: 156.147.1.127 X-Original-MAILFROM: cheol.lee@lge.com Received: from unknown (HELO LGEAEXHB01P.LGE.NET) (165.244.249.25) by 156.147.1.127 with ESMTP; 15 Mar 2017 10:33:36 +0900 X-Original-SENDERIP: 165.244.249.25 X-Original-MAILFROM: cheol.lee@lge.com Received: from lgekrmhub08.lge.com (10.185.110.18) by LGEAEXHB01P.LGE.NET (165.244.249.21) with Microsoft SMTP Server id 8.3.264.0; Wed, 15 Mar 2017 10:31:48 +0900 Received: from lgemrelse6q.lge.com ([156.147.1.121]) by lgekrmhub08.lge.com (Lotus Domino Release 8.5.3FP6) with ESMTP id 2017031510314776-133193 ; Wed, 15 Mar 2017 10:31:47 +0900 Received: from unknown (HELO localhost.localdomain) (10.177.225.40) by 156.147.1.121 with ESMTP; 15 Mar 2017 10:31:47 +0900 X-Original-SENDERIP: 10.177.225.40 X-Original-MAILFROM: cheol.lee@lge.com From: Hyunchul Lee To: Richard Weinberger CC: , Artem Bityutskiy , , , , , Hyunchul Lee , Hyunchul Lee Subject: [PATCH 3/3] ubifs: fix debug messages for an invalid filename in ubifs_dump_inode Date: Wed, 15 Mar 2017 10:31:05 +0900 Message-ID: <1489541465-25663-3-git-send-email-cheol.lee@lge.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1489541465-25663-1-git-send-email-cheol.lee@lge.com> References: <1489541465-25663-1-git-send-email-cheol.lee@lge.com> X-MIMETrack: Itemize by SMTP Server on LGEKRMHUB08/LGE/LG Group(Release 8.5.3FP6|November 21, 2013) at 2017/03/15 10:31:47, Serialize by Router on LGEKRMHUB08/LGE/LG Group(Release 8.5.3FP6|November 21, 2013) at 2017/03/15 10:31:47, Serialize complete at 2017/03/15 10:31:47 MIME-Version: 1.0 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP instead of filenames, print inode numbers, file types, and length. Signed-off-by: Hyunchul Lee --- fs/ubifs/debug.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c index b14c06f..718b749 100644 --- a/fs/ubifs/debug.c +++ b/fs/ubifs/debug.c @@ -287,8 +287,10 @@ void ubifs_dump_inode(struct ubifs_info *c, const struct inode *inode) break; } - pr_err("\t%d: %s (%s)\n", - count++, dent->name, get_dent_type(dent->type)); + pr_err("\t%d: inode %llu, type %s, len %d\n", + count++, (unsigned long long) le64_to_cpu(dent->inum), + get_dent_type(dent->type), + le16_to_cpu(dent->nlen)); fname_name(&nm) = dent->name; fname_len(&nm) = le16_to_cpu(dent->nlen);