Skip to content

Commit

Permalink
dbgrpt_sysfs_i2c_info(): don't test for drm support if adapter_path =…
Browse files Browse the repository at this point in the history
…= NULL
  • Loading branch information
rockowitz committed Mar 10, 2024
1 parent f85e35f commit 5d595de
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/i2c/i2c_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1516,8 +1516,10 @@ void dbgrpt_sysfs_i2c_info(Sysfs_I2C_Info * info, int depth) {
rpt_vstring(d1, "conflicting_driver_names: %s",
join_string_g_ptr_array_t(info->conflicting_driver_names, ", ") );
#ifdef USE_LIBDRM
rpt_vstring(d1, "adapter supports DRM: %s",
sbool(adapter_supports_drm_using_drm_api(info->adapter_path)));
if (info->adapter_path) {
rpt_vstring(d1, "adapter supports DRM: %s",
sbool(adapter_supports_drm_using_drm_api(info->adapter_path)));
}
#endif
}

Expand Down

0 comments on commit 5d595de

Please sign in to comment.