From patchwork Mon Nov 14 18:34:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Theodore Ts'o X-Patchwork-Id: 125587 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 7B538B720C for ; Tue, 15 Nov 2011 05:34:17 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751384Ab1KNSeO (ORCPT ); Mon, 14 Nov 2011 13:34:14 -0500 Received: from li9-11.members.linode.com ([67.18.176.11]:48330 "EHLO test.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751236Ab1KNSeO (ORCPT ); Mon, 14 Nov 2011 13:34:14 -0500 Received: from root (helo=tytso-glaptop.cam.corp.google.com) by test.thunk.org with local-esmtp (Exim 4.69) (envelope-from ) id 1RQ1MC-0001ZD-RR; Mon, 14 Nov 2011 18:34:12 +0000 Received: from tytso by tytso-glaptop.cam.corp.google.com with local (Exim 4.71) (envelope-from ) id 1RQ1MB-0005xd-Cg; Mon, 14 Nov 2011 13:34:11 -0500 From: Theodore Ts'o To: Ext4 Developers List Cc: Theodore Ts'o Subject: [PATCH] libquota: log an error message if ext2fs_file_open() fails Date: Mon, 14 Nov 2011 13:34:11 -0500 Message-Id: <1321295651-22882-1-git-send-email-tytso@mit.edu> X-Mailer: git-send-email 1.7.4.1.22.gec8e1.dirty X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on test.thunk.org); SAEximRunCond expanded to false Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org This also fixes a format string type compiler warning. Signed-off-by: "Theodore Ts'o" --- lib/quota/quotaio.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/quota/quotaio.c b/lib/quota/quotaio.c index 6edb0b0..d0b5b9d 100644 --- a/lib/quota/quotaio.c +++ b/lib/quota/quotaio.c @@ -232,7 +232,7 @@ errcode_t quota_file_open(struct quota_handle *h, ext2_filsys fs, log_debug("Opening quota ino=%lu, type=%d", qf_ino, type); err = ext2fs_file_open(fs, qf_ino, flags, &e2_file); if (err) { - log_err("ext2fs_file_open failed: %d", err); + log_err("ext2fs_file_open failed: %s", error_message(err)); return err; } h->qh_qf.e2_file = e2_file;