Skip to content

Commit

Permalink
Fix old nvidia log statement to fix CI
Browse files Browse the repository at this point in the history
Not sure why it started with two nullptrs. Probably ancient code.

Signed-off-by: Tin Švagelj <[email protected]>
  • Loading branch information
Caellian committed May 4, 2024
1 parent 90f794c commit 33716cb
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/nvidia.cc
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,8 @@ unique_display_t nvidia_display_setting::get_nvdisplay() {
if (!nvdisplay.empty()) {
unique_display_t nvd(XOpenDisplay(nvdisplay.c_str()), &close_nvdisplay);
if (!nvd) {
NORM_ERR(nullptr, NULL, "can't open nvidia display: %s",
XDisplayName(nvdisplay.c_str()));
SYSTEM_ERR("can't open nvidia display: %s",
XDisplayName(nvdisplay.c_str()));
}
return nvd;
}
Expand Down Expand Up @@ -704,14 +704,14 @@ static inline int get_nvidia_target_count(Display *dpy, TARGET_ID tid) {

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

return num_tgts;
Expand Down

0 comments on commit 33716cb

Please sign in to comment.