From: Nguyễn Thái Ngọc Duy Date: Sun, 01 May 2016 11:14:32 GMT Subject: [PATCH 16/41] combine-diff.c: use error_errno() Message-ID: <1462101297-8610-17-git-send-email-pclouds@gmail.com> In-Reply-To: <1462101297-8610-1-git-send-email-pclouds@gmail.com> Signed-off-by: Nguyễn Thái Ngọc Duy --- combine-diff.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/combine-diff.c b/combine-diff.c index 0e1d4b0..8f2313d 100644 --- a/combine-diff.c +++ b/combine-diff.c @@ -1005,8 +1005,7 @@ static void show_patch_diff(struct combine_diff_path *elem, int num_parent, struct strbuf buf = STRBUF_INIT; if (strbuf_readlink(&buf, elem->path, st.st_size) < 0) { - error("readlink(%s): %s", elem->path, - strerror(errno)); + error_errno("readlink(%s)", elem->path); return; } result_size = buf.len; -- 2.8.0.rc0.210.gd302cd2