Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
0376b7f4
Unverified
Commit
0376b7f4
authored
Jan 09, 2021
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vtcp: make vtcp_sa_to_ascii error output more helpful
- write to stderr - output errno for EAI_SYSTEM
parent
889b9e0b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
vtcp.c
lib/libvarnish/vtcp.c
+3
-1
No files found.
lib/libvarnish/vtcp.c
View file @
0376b7f4
...
@@ -73,7 +73,9 @@ vtcp_sa_to_ascii(const void *sa, socklen_t l, char *abuf, unsigned alen,
...
@@ -73,7 +73,9 @@ vtcp_sa_to_ascii(const void *sa, socklen_t l, char *abuf, unsigned alen,
* XXX this printf is shitty, but we may not have space
* XXX this printf is shitty, but we may not have space
* for the gai_strerror in the bufffer :-(
* for the gai_strerror in the bufffer :-(
*/
*/
printf
(
"getnameinfo = %d %s
\n
"
,
i
,
gai_strerror
(
i
));
fprintf
(
stderr
,
"getnameinfo = %d %s
\n
"
,
i
,
gai_strerror
(
i
));
if
(
i
==
EAI_SYSTEM
)
fprintf
(
stderr
,
"errno = %d %s
\n
"
,
errno
,
vstrerror
(
errno
));
if
(
abuf
!=
NULL
)
if
(
abuf
!=
NULL
)
(
void
)
snprintf
(
abuf
,
alen
,
"Conversion"
);
(
void
)
snprintf
(
abuf
,
alen
,
"Conversion"
);
if
(
pbuf
!=
NULL
)
if
(
pbuf
!=
NULL
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment