usb_serial: fixes 64 bit warnings
This commit is contained in:
parent
0e8bd8493a
commit
24dba16d04
@ -351,7 +351,7 @@ publish_devices()
|
||||
if (gSerialDevices[i]) {
|
||||
gDeviceNames[j] = (char *)malloc(strlen(sDeviceBaseName) + 4);
|
||||
if (gDeviceNames[j]) {
|
||||
sprintf(gDeviceNames[j], "%s%ld", sDeviceBaseName, i);
|
||||
sprintf(gDeviceNames[j], "%s%" B_PRId32, sDeviceBaseName, i);
|
||||
j++;
|
||||
} else
|
||||
TRACE_ALWAYS("publish_devices - no memory to allocate device names\n");
|
||||
|
@ -669,7 +669,7 @@ SerialDevice::_WriteToDevice()
|
||||
|
||||
void
|
||||
SerialDevice::_ReadCallbackFunction(void *cookie, status_t status, void *data,
|
||||
uint32 actualLength)
|
||||
size_t actualLength)
|
||||
{
|
||||
TRACE_FUNCALLS("read callback: cookie: 0x%08x status: 0x%08x data: 0x%08x "
|
||||
"length: %lu\n", cookie, status, data, actualLength);
|
||||
@ -683,7 +683,7 @@ SerialDevice::_ReadCallbackFunction(void *cookie, status_t status, void *data,
|
||||
|
||||
void
|
||||
SerialDevice::_WriteCallbackFunction(void *cookie, status_t status, void *data,
|
||||
uint32 actualLength)
|
||||
size_t actualLength)
|
||||
{
|
||||
TRACE_FUNCALLS("write callback: cookie: 0x%08x status: 0x%08x data: 0x%08x "
|
||||
"length: %lu\n", cookie, status, data, actualLength);
|
||||
@ -697,7 +697,7 @@ SerialDevice::_WriteCallbackFunction(void *cookie, status_t status, void *data,
|
||||
|
||||
void
|
||||
SerialDevice::_InterruptCallbackFunction(void *cookie, status_t status,
|
||||
void *data, uint32 actualLength)
|
||||
void *data, size_t actualLength)
|
||||
{
|
||||
TRACE_FUNCALLS("interrupt callback: cookie: 0x%08x status: 0x%08x data: "
|
||||
"0x%08x len: %lu\n", cookie, status, data, actualLength);
|
||||
|
@ -95,13 +95,13 @@ static int32 _InputThread(void *data);
|
||||
|
||||
static void _ReadCallbackFunction(void *cookie,
|
||||
int32 status, void *data,
|
||||
uint32 actualLength);
|
||||
size_t actualLength);
|
||||
static void _WriteCallbackFunction(void *cookie,
|
||||
int32 status, void *data,
|
||||
uint32 actualLength);
|
||||
size_t actualLength);
|
||||
static void _InterruptCallbackFunction(void *cookie,
|
||||
int32 status, void *data,
|
||||
uint32 actualLength);
|
||||
size_t actualLength);
|
||||
|
||||
usb_device fDevice; // USB device handle
|
||||
uint16 fVendorID;
|
||||
|
Loading…
Reference in New Issue
Block a user