public inbox for cygwin-patches@cygwin.com
 help / color / mirror / Atom feed
* [PATCH] Fix trace output for getdomainname()
@ 2020-12-04 22:58 Anton Lavrentiev
  2020-12-07  9:41 ` Corinna Vinschen
  0 siblings, 1 reply; 2+ messages in thread
From: Anton Lavrentiev @ 2020-12-04 22:58 UTC (permalink / raw)
  To: cygwin-patches

---
 winsup/cygwin/net.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
index 724e787fe..cec0a70cc 100644
--- a/winsup/cygwin/net.cc
+++ b/winsup/cygwin/net.cc
@@ -772,7 +772,7 @@ getdomainname (char *domain, size_t len)
 	  && GetNetworkParams(info, &size) == ERROR_SUCCESS)
 	{
 	  strncpy(domain, info->DomainName, len);
-	  debug_printf ("gethostname %s", domain);
+	  debug_printf ("getdomainname %s", domain);
 	  return 0;
 	}
       __seterrno ();
-- 
2.29.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix trace output for getdomainname()
  2020-12-04 22:58 [PATCH] Fix trace output for getdomainname() Anton Lavrentiev
@ 2020-12-07  9:41 ` Corinna Vinschen
  0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2020-12-07  9:41 UTC (permalink / raw)
  To: cygwin-patches

On Dec  4 17:58, Anton Lavrentiev via Cygwin-patches wrote:
> ---
>  winsup/cygwin/net.cc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc
> index 724e787fe..cec0a70cc 100644
> --- a/winsup/cygwin/net.cc
> +++ b/winsup/cygwin/net.cc
> @@ -772,7 +772,7 @@ getdomainname (char *domain, size_t len)
>  	  && GetNetworkParams(info, &size) == ERROR_SUCCESS)
>  	{
>  	  strncpy(domain, info->DomainName, len);
> -	  debug_printf ("gethostname %s", domain);
> +	  debug_printf ("getdomainname %s", domain);
>  	  return 0;
>  	}
>        __seterrno ();
> -- 
> 2.29.2

Pushed

Thanks,
Corinna

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-07  9:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-04 22:58 [PATCH] Fix trace output for getdomainname() Anton Lavrentiev
2020-12-07  9:41 ` Corinna Vinschen

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).