diff options
author | Jakob Bornecrantz <jakob@tungstengraphics.com> | 2008-07-03 00:03:48 +0200 |
---|---|---|
committer | Jakob Bornecrantz <jakob@tungstengraphics.com> | 2008-07-03 00:04:48 +0200 |
commit | aa2d3cfc168481b7637d935af990ce447012ebfe (patch) | |
tree | 4a683ce45a872ba0c0be74766ea333bd84445100 | |
parent | 70ba0871916af586b355550184e0782b36e132c9 (diff) |
tests: Fix faulty error messages in modeprint
-rw-r--r-- | tests/modeprint/modetest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/modeprint/modetest.c b/tests/modeprint/modetest.c index d8a94709f..f0f8abd4f 100644 --- a/tests/modeprint/modetest.c +++ b/tests/modeprint/modetest.c @@ -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); |