/* History: 07-Aug-2000 Created. 19-Oct-2000 Reworked for usbvideo module.  */
static void usbvideo_VideosizeToString(char *buf, int bufLen, videosize_t vs)
/* History: 07-Aug-2000 Created. 19-Oct-2000 Reworked for usbvideo module.  */
static void usbvideo_VideosizeToString(char *buf, int bufLen, videosize_t vs)
{
	char tmp[40];
	int n;
	n = 1 + sprintf(tmp, "%ldx%ld", VIDEOSIZE_X(vs), VIDEOSIZE_Y(vs));
	assert(n < sizeof(tmp));
	if ((buf == NULL) || (bufLen < n))
		err("usbvideo_VideosizeToString: buffer is too small.");
	else
		memmove(buf, tmp, n);
}