@@ -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