diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-11-14 13:33:17 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-11-14 13:33:17 -0500 |
commit | 2b8d68391957dfb681931da42c42416a9525b395 (patch) | |
tree | 0e3e08a42814914f7a1c40f9db8c1796c2e121b1 /lib/quota | |
parent | 1527d99d378a4a45f1e36b197bed628ce28d73ee (diff) | |
download | e2fsprogs-2b8d68391957dfb681931da42c42416a9525b395.tar.gz |
libquota: log an error message if ext2fs_file_open() fails
This also fixes a format string type compiler warning.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib/quota')
-rw-r--r-- | 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 6edb0b09..d0b5b9d8 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; |