Skip to content

Commit 33716cb

Browse files
committed
Fix old nvidia log statement to fix CI
Not sure why it started with two nullptrs. Probably ancient code. Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
1 parent 90f794c commit 33716cb

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/nvidia.cc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,8 @@ unique_display_t nvidia_display_setting::get_nvdisplay() {
405405
if (!nvdisplay.empty()) {
406406
unique_display_t nvd(XOpenDisplay(nvdisplay.c_str()), &close_nvdisplay);
407407
if (!nvd) {
408-
NORM_ERR(nullptr, NULL, "can't open nvidia display: %s",
409-
XDisplayName(nvdisplay.c_str()));
408+
SYSTEM_ERR("can't open nvidia display: %s",
409+
XDisplayName(nvdisplay.c_str()));
410410
}
411411
return nvd;
412412
}
@@ -704,14 +704,14 @@ static inline int get_nvidia_target_count(Display *dpy, TARGET_ID tid) {
704704

705705
if (num_tgts < 1 && tid == TARGET_GPU) {
706706
// Print error and exit if there's no NVIDIA's GPU
707-
NORM_ERR(nullptr, NULL,
708-
"%s:"
709-
"\n Trying to query Nvidia target failed (using the "
710-
"proprietary drivers)."
711-
"\n Are you sure they are installed correctly and a "
712-
"Nvidia GPU is in use?"
713-
"\n (display: %d,Nvidia target_count: %d)",
714-
__func__, dpy, num_tgts);
707+
SYSTEM_ERR(
708+
"%s:"
709+
"\n Trying to query Nvidia target failed (using the "
710+
"proprietary drivers)."
711+
"\n Are you sure they are installed correctly and a "
712+
"Nvidia GPU is in use?"
713+
"\n (display: %d, Nvidia target_count: %d)",
714+
__func__, dpy, num_tgts);
715715
}
716716

717717
return num_tgts;

0 commit comments

Comments
 (0)