Skip to content

Commit 117444c

Browse files
committed
Added additional logging if XOPEN fails
1 parent 8e36f4e commit 117444c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

meshcore/KVM/Linux/linux_kvm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,7 @@ int kvm_init(int displayNo)
574574
{
575575
char tmpBuff[1024];
576576
sprintf_s(tmpBuff, sizeof(tmpBuff), "XOpenDisplay(%s) failed, using XAUTHORITY: %s", CURRENT_XDISPLAY, getenv("XAUTHORITY"));
577+
if (logFile) { fprintf(logFile, "XOpenDisplay(%s) failed, using XAUTHORITY: %s\n", CURRENT_XDISPLAY, getenv("XAUTHORITY")); fflush(logFile); }
577578
kvm_send_error(tmpBuff);
578579
return(-1);
579580
}

0 commit comments

Comments
 (0)