From: Eric Wong <e@80x24.org>
To: cmogstored-public@bogomips.org
Subject: [PATCH 2/1] http_get: show hexadecimal device numbers
Date: Tue, 10 Jul 2018 20:59:09 +0000 [thread overview]
Message-ID: <20180710205909.mrhdnqsxcbikmqtx@dcvr> (raw)
In-Reply-To: <20180709073752.21514-1-e@80x24.org>
It's more obvious distinguish major/minor numbers from
---
http_get.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/http_get.c b/http_get.c
index 154d8c5..156f43f 100644
--- a/http_get.c
+++ b/http_get.c
@@ -268,7 +268,7 @@ static void sendfile_error(struct mog_fd *file_mfd, int sferr)
if (!fstat(file_mfd->fd, &st)) {
errno = sferr;
syslog(LOG_ERR,
-"sendfile on (dev=%lu,ino=%lu) failed at offset=%lld: %m",
+"sendfile on (dev=%#lx,ino=%lu) failed at offset=%lld: %m",
(unsigned long)st.st_dev, (unsigned long)st.st_ino,
(long long)file->foff);
}
--
EW
prev parent reply other threads:[~2018-07-10 20:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-09 7:37 [PATCH] http_get.c: log filesystem-level errors from sendfile Eric Wong
2018-07-10 20:59 ` Eric Wong [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/cmogstored/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180710205909.mrhdnqsxcbikmqtx@dcvr \
--to=e@80x24.org \
--cc=cmogstored-public@bogomips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/cmogstored.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).