[PATCH] Fix trace output for getdomainname()

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Fix trace output for getdomainname()

cygwin-patches mailing list
---
 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

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Fix trace output for getdomainname()

cygwin-patches mailing list
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