Patchwork D9365: chg: fix test-check-clang-format.t failure

login
register
mail settings
Submitter phabricator
Date Nov. 22, 2020, 6:23 p.m.
Message ID <differential-rev-PHID-DREV-ar377pcyfksudry75c72-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47644/
State Superseded
Headers show

Comments

phabricator - Nov. 22, 2020, 6:23 p.m.
pulkit created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D9365

AFFECTED FILES
  contrib/chg/chg.c

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/contrib/chg/chg.c b/contrib/chg/chg.c
--- a/contrib/chg/chg.c
+++ b/contrib/chg/chg.c
@@ -283,13 +283,17 @@ 
 				continue;
 			}
 			if (errno == ERANGE) {
-				debugmsg("tried to parse %s, but range error occurred", de->d_name);
+				debugmsg("tried to parse %s, but range error "
+				         "occurred",
+				         de->d_name);
 				continue;
 			}
 			if (fd_value > STDERR_FILENO) {
 				int res = close(fd_value);
 				if (res) {
-					debugmsg("tried to close fd %ld: %d (errno: %d)", fd_value, res, errno);
+					debugmsg("tried to close fd %ld: %d "
+					         "(errno: %d)",
+					         fd_value, res, errno);
 				}
 			}
 		}