Fix Diagnostic port suspension message doesn't report expected port name (#85430)
authorNickolas McDonald <43690021+n77y@users.noreply.github.com>
Fri, 5 May 2023 20:07:00 +0000 (16:07 -0400)
committerGitHub <noreply@github.com>
Fri, 5 May 2023 20:07:00 +0000 (13:07 -0700)
src/coreclr/vm/eventing/eventpipe/ds-rt-coreclr.h

index aa5b8ca..cf779c1 100644 (file)
@@ -302,7 +302,7 @@ ds_rt_server_log_pause_message (void)
 {
        STATIC_CONTRACT_NOTHROW;
 
-       const char diagPortsName[] = "DOTNET_DiagnosticPorts";
+       const char diagPortsName[] = "DiagnosticPorts";
        CLRConfigNoCache diagPorts = CLRConfigNoCache::Get(diagPortsName);
        LPCSTR ports = nullptr;
        if (diagPorts.IsSet())
@@ -313,7 +313,7 @@ ds_rt_server_log_pause_message (void)
        uint32_t port_suspended = ds_rt_config_value_get_default_port_suspend();
 
        printf("The runtime has been configured to pause during startup and is awaiting a Diagnostics IPC ResumeStartup command from a Diagnostic Port.\n");
-       printf("%s=\"%s\"\n", diagPortsName, ports == nullptr ? "" : ports);
+       printf("DOTNET_%s=\"%s\"\n", diagPortsName, ports == nullptr ? "" : ports);
        printf("DOTNET_DefaultDiagnosticPortSuspend=%u\n", port_suspended);
        fflush(stdout);
 }