static void printMediaType (AM_MEDIA_TYPE *mt) { GST_DEBUG (":: majortype: "GUID_FORMAT, GUID_ARGS(mt->majortype)); GST_DEBUG (":: subtype: "GUID_FORMAT, GUID_ARGS(mt->subtype)); GST_DEBUG (":: bFixedSizeSamples: %d", mt->bFixedSizeSamples); GST_DEBUG (":: bTemporalCompression: %d", mt->bTemporalCompression); GST_DEBUG (":: cbFormat: %d", mt->cbFormat); GST_DEBUG (":: formattype: %x", mt->formattype); GST_DEBUG (":: lSampleSize: %lu", mt->lSampleSize); GST_DEBUG (":: pbFormat: %p", mt->pbFormat); }
static int proc_info (char *buffer, char **start, off_t offset, int length, int hostno, int inout) { struct us_data *us; char *pos = buffer; /* if someone is sending us data, just throw it away */ if (inout) return length; /* lock the data structures */ down(&us_list_semaphore); /* find our data from hostno */ us = us_list; while (us) { if (us->host_no == hostno) break; us = us->next; } /* release our lock on the data structures */ up(&us_list_semaphore); /* if we couldn't find it, we return an error */ if (!us) { return -ESRCH; } /* print the controller name */ SPRINTF(" Host scsi%d: usb-storage\n", hostno); /* print product, vendor, and serial number strings */ SPRINTF(" Vendor: %s\n", us->vendor); SPRINTF(" Product: %s\n", us->product); SPRINTF("Serial Number: %s\n", us->serial); /* show the protocol and transport */ SPRINTF(" Protocol: %s\n", us->protocol_name); SPRINTF(" Transport: %s\n", us->transport_name); /* show the GUID of the device */ SPRINTF(" GUID: " GUID_FORMAT "\n", GUID_ARGS(us->guid)); SPRINTF(" Attached: %s\n", us->pusb_dev ? "Yes" : "No"); /* * Calculate start of next buffer, and return value. */ *start = buffer + offset; if ((pos - buffer) < offset) return (0); else if ((pos - buffer - offset) < length) return (pos - buffer - offset); else return (length); }