tests: Fix faulty error messages in modeprint

main
Jakob Bornecrantz 2008-07-03 00:03:48 +02:00
parent 70ba087191
commit aa2d3cfc16
1 changed files with 3 additions and 3 deletions

View File

@ -220,7 +220,7 @@ int printRes(int fd, drmModeResPtr res)
connector = drmModeGetConnector(fd, res->connectors[i]);
if (!connector)
printf("Could not get connector %i\n", i);
printf("Could not get connector %i\n", res->connectors[i]);
else {
printConnector(fd, res, connector, res->connectors[i]);
drmModeFreeConnector(connector);
@ -235,7 +235,7 @@ int printRes(int fd, drmModeResPtr res)
encoder = drmModeGetEncoder(fd, res->encoders[i]);
if (!encoder)
printf("Could not get encoder %i\n", i);
printf("Could not get encoder %i\n", res->encoders[i]);
else {
printEncoder(fd, res, encoder, res->encoders[i]);
drmModeFreeEncoder(encoder);
@ -249,7 +249,7 @@ int printRes(int fd, drmModeResPtr res)
crtc = drmModeGetCrtc(fd, res->crtcs[i]);
if (!crtc)
printf("Could not get crtc %i\n", i);
printf("Could not get crtc %i\n", res->crtcs[i]);
else {
printCrtc(fd, res, crtc, res->crtcs[i]);
drmModeFreeCrtc(crtc);