--- drm/dristat.c.orig 2004-08-29 00:54:06.606558456 -0400 +++ drm/dristat.c 2004-08-29 01:09:11.798948296 -0400 @@ -75,11 +75,11 @@ int i; const char *typename; char flagname[33]; - drmHandle offset; + drm_handle_t offset; drmSize size; drmMapType type; drmMapFlags flags; - drmHandle handle; + drm_handle_t handle; int mtrr; printf(" VM map information:\n"); @@ -248,7 +248,16 @@ case 'i': interval = strtol(optarg, NULL, 0); break; case 'M': minor = strtol(optarg, NULL, 0); break; default: - fprintf( stderr, "Usage: dristat [options]\n" ); + fprintf( stderr, "Usage: dristat [options]\n\n" ); + fprintf( stderr, "Displays DRM information. Use with no arguments to display available cards.\n\n" ); + fprintf( stderr, " -a Show all available information\n" ); + fprintf( stderr, " -b Show DRM bus ID's\n" ); + fprintf( stderr, " -c Display information about DRM clients\n" ); + fprintf( stderr, " -i [interval] Continuously display statistics every [interval] seconds\n" ); + fprintf( stderr, " -v Display DRM module and card version information\n" ); + fprintf( stderr, " -m Display memory use information\n" ); + fprintf( stderr, " -s Display DRM statistics\n" ); + fprintf( stderr, " -M [minor] Select card by minor number\n" ); return 1; }