modeprint: cleanup, remove compile warnings
Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>main
parent
f1468e8846
commit
d7f58da11a
|
@ -61,6 +61,7 @@ static const char* getConnectionText(drmModeConnection conn)
|
||||||
return "connected";
|
return "connected";
|
||||||
case DRM_MODE_DISCONNECTED:
|
case DRM_MODE_DISCONNECTED:
|
||||||
return "disconnected";
|
return "disconnected";
|
||||||
|
case DRM_MODE_UNKNOWNCONNECTION:
|
||||||
default:
|
default:
|
||||||
return "unknown";
|
return "unknown";
|
||||||
}
|
}
|
||||||
|
@ -124,9 +125,6 @@ static int printProperty(int fd, drmModeResPtr res, drmModePropertyPtr props, ui
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (!strncmp(props->name, "DPMS", 4))
|
|
||||||
;
|
|
||||||
|
|
||||||
for (j = 0; j < props->count_enums; j++) {
|
for (j = 0; j < props->count_enums; j++) {
|
||||||
printf("\t\t%lld = %s\n", props->enums[j].value, props->enums[j].name);
|
printf("\t\t%lld = %s\n", props->enums[j].value, props->enums[j].name);
|
||||||
if (props->enums[j].value == value)
|
if (props->enums[j].value == value)
|
||||||
|
|
Loading…
Reference in New Issue