custom message type for VM_INFO
[minix3.git] / sys / dev / videomode / test.c
blob21c7e4884123304ba678a2984b34393b5448f5e5
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
4 #include "videomode.h"
6 int
7 main(int argc, char **argv)
9 int i, j;
11 for (i = 1; i < argc ; i++) {
12 for (j = 0; j < videomode_count; j++) {
13 if (strcmp(videomode_list[j].name, argv[i]) == 0) {
14 printf("dotclock for mode %s = %d, flags %x\n",
15 argv[i],
16 videomode_list[j].dot_clock,
17 videomode_list[j].flags);
18 break;
21 if (j == videomode_count) {
22 printf("dotclock for mode %s not found\n", argv[i]);