You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
staging: __FUNCTION__ is gcc-specific, use __func__
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
9b4778f680
commit
d599edcaea
@@ -557,7 +557,7 @@ unsigned int comedi_buf_munge(comedi_async * async, unsigned int num_bytes)
|
||||
block_size = num_bytes - count;
|
||||
if (block_size < 0) {
|
||||
rt_printk("%s: %s: bug! block_size is negative\n",
|
||||
__FILE__, __FUNCTION__);
|
||||
__FILE__, __func__);
|
||||
break;
|
||||
}
|
||||
if ((int)(async->munge_ptr + block_size -
|
||||
|
||||
@@ -391,19 +391,19 @@ tEplKernel EdrvInit(tEdrvInitParam * pEdrvInitParam_p)
|
||||
// register PCI driver
|
||||
iResult = pci_register_driver(&EdrvDriver);
|
||||
if (iResult != 0) {
|
||||
printk("%s pci_register_driver failed with %d\n", __FUNCTION__,
|
||||
printk("%s pci_register_driver failed with %d\n", __func__,
|
||||
iResult);
|
||||
Ret = kEplNoResource;
|
||||
goto Exit;
|
||||
}
|
||||
|
||||
if (EdrvInstance_l.m_pPciDev == NULL) {
|
||||
printk("%s m_pPciDev=NULL\n", __FUNCTION__);
|
||||
printk("%s m_pPciDev=NULL\n", __func__);
|
||||
Ret = kEplNoResource;
|
||||
goto Exit;
|
||||
}
|
||||
// read MAC address from controller
|
||||
printk("%s local MAC = ", __FUNCTION__);
|
||||
printk("%s local MAC = ", __func__);
|
||||
for (iResult = 0; iResult < 6; iResult++) {
|
||||
pEdrvInitParam_p->m_abMyMacAddr[iResult] =
|
||||
EDRV_REGB_READ((EDRV_REGDW_IDR0 + iResult));
|
||||
@@ -434,7 +434,7 @@ tEplKernel EdrvShutdown(void)
|
||||
{
|
||||
|
||||
// unregister PCI driver
|
||||
printk("%s calling pci_unregister_driver()\n", __FUNCTION__);
|
||||
printk("%s calling pci_unregister_driver()\n", __func__);
|
||||
pci_unregister_driver(&EdrvDriver);
|
||||
|
||||
return kEplSuccessful;
|
||||
@@ -621,7 +621,7 @@ tEplKernel EdrvSendTxMsg(tEdrvTxBuffer * pBuffer_p)
|
||||
EDRV_REGDW_READ((EDRV_REGDW_TSD0 +
|
||||
(EdrvInstance_l.m_uiCurTxDesc *
|
||||
sizeof(DWORD))));
|
||||
printk("%s InvOp TSD%u = 0x%08lX", __FUNCTION__,
|
||||
printk("%s InvOp TSD%u = 0x%08lX", __func__,
|
||||
EdrvInstance_l.m_uiCurTxDesc, dwTemp);
|
||||
printk(" Cmd = 0x%02X\n",
|
||||
(WORD) EDRV_REGB_READ(EDRV_REGB_COMMAND));
|
||||
@@ -646,7 +646,7 @@ tEplKernel EdrvSendTxMsg(tEdrvTxBuffer * pBuffer_p)
|
||||
dwTemp =
|
||||
EDRV_REGDW_READ((EDRV_REGDW_TSAD0 +
|
||||
(EdrvInstance_l.m_uiCurTxDesc * sizeof(DWORD))));
|
||||
// printk("%s TSAD%u = 0x%08lX", __FUNCTION__, EdrvInstance_l.m_uiCurTxDesc, dwTemp);
|
||||
// printk("%s TSAD%u = 0x%08lX", __func__, EdrvInstance_l.m_uiCurTxDesc, dwTemp);
|
||||
|
||||
// start transmission
|
||||
EDRV_REGDW_WRITE((EDRV_REGDW_TSD0 +
|
||||
@@ -786,7 +786,7 @@ static int TgtEthIsr(int nIrqNum_p, void *ppDevInstData_p,
|
||||
|
||||
if (EdrvInstance_l.m_pbTxBuf == NULL) {
|
||||
printk("%s Tx buffers currently not allocated\n",
|
||||
__FUNCTION__);
|
||||
__func__);
|
||||
goto Exit;
|
||||
}
|
||||
// read transmit status
|
||||
@@ -842,7 +842,7 @@ static int TgtEthIsr(int nIrqNum_p, void *ppDevInstData_p,
|
||||
|
||||
if (EdrvInstance_l.m_pbRxBuf == NULL) {
|
||||
printk("%s Rx buffers currently not allocated\n",
|
||||
__FUNCTION__);
|
||||
__func__);
|
||||
goto Exit;
|
||||
}
|
||||
// read current offset in receive buffer
|
||||
@@ -944,7 +944,7 @@ static int EdrvInitOne(struct pci_dev *pPciDev, const struct pci_device_id *pId)
|
||||
DWORD dwTemp;
|
||||
|
||||
if (EdrvInstance_l.m_pPciDev != NULL) { // Edrv is already connected to a PCI device
|
||||
printk("%s device %s discarded\n", __FUNCTION__,
|
||||
printk("%s device %s discarded\n", __func__,
|
||||
pci_name(pPciDev));
|
||||
iResult = -ENODEV;
|
||||
goto Exit;
|
||||
@@ -953,7 +953,7 @@ static int EdrvInitOne(struct pci_dev *pPciDev, const struct pci_device_id *pId)
|
||||
if (pPciDev->revision >= 0x20) {
|
||||
printk
|
||||
("%s device %s is an enhanced 8139C+ version, which is not supported\n",
|
||||
__FUNCTION__, pci_name(pPciDev));
|
||||
__func__, pci_name(pPciDev));
|
||||
iResult = -ENODEV;
|
||||
goto Exit;
|
||||
}
|
||||
@@ -961,7 +961,7 @@ static int EdrvInitOne(struct pci_dev *pPciDev, const struct pci_device_id *pId)
|
||||
EdrvInstance_l.m_pPciDev = pPciDev;
|
||||
|
||||
// enable device
|
||||
printk("%s enable device\n", __FUNCTION__);
|
||||
printk("%s enable device\n", __func__);
|
||||
iResult = pci_enable_device(pPciDev);
|
||||
if (iResult != 0) {
|
||||
goto Exit;
|
||||
@@ -972,13 +972,13 @@ static int EdrvInitOne(struct pci_dev *pPciDev, const struct pci_device_id *pId)
|
||||
goto Exit;
|
||||
}
|
||||
|
||||
printk("%s request regions\n", __FUNCTION__);
|
||||
printk("%s request regions\n", __func__);
|
||||
iResult = pci_request_regions(pPciDev, DRV_NAME);
|
||||
if (iResult != 0) {
|
||||
goto Exit;
|
||||
}
|
||||
|
||||
printk("%s ioremap\n", __FUNCTION__);
|
||||
printk("%s ioremap\n", __func__);
|
||||
EdrvInstance_l.m_pIoAddr =
|
||||
ioremap(pci_resource_start(pPciDev, 1),
|
||||
pci_resource_len(pPciDev, 1));
|
||||
@@ -987,11 +987,11 @@ static int EdrvInitOne(struct pci_dev *pPciDev, const struct pci_device_id *pId)
|
||||
goto Exit;
|
||||
}
|
||||
// enable PCI busmaster
|
||||
printk("%s enable busmaster\n", __FUNCTION__);
|
||||
printk("%s enable busmaster\n", __func__);
|
||||
pci_set_master(pPciDev);
|
||||
|
||||
// reset controller
|
||||
printk("%s reset controller\n", __FUNCTION__);
|
||||
printk("%s reset controller\n", __func__);
|
||||
EDRV_REGB_WRITE(EDRV_REGB_COMMAND, EDRV_REGB_COMMAND_RST);
|
||||
|
||||
// wait until reset has finished
|
||||
@@ -1008,20 +1008,20 @@ static int EdrvInitOne(struct pci_dev *pPciDev, const struct pci_device_id *pId)
|
||||
dwTemp = EDRV_REGDW_READ(EDRV_REGDW_TCR);
|
||||
if (((dwTemp & EDRV_REGDW_TCR_VER_MASK) != EDRV_REGDW_TCR_VER_C)
|
||||
&& ((dwTemp & EDRV_REGDW_TCR_VER_MASK) != EDRV_REGDW_TCR_VER_D)) { // unsupported chip
|
||||
printk("%s Unsupported chip! TCR = 0x%08lX\n", __FUNCTION__,
|
||||
printk("%s Unsupported chip! TCR = 0x%08lX\n", __func__,
|
||||
dwTemp);
|
||||
iResult = -ENODEV;
|
||||
goto Exit;
|
||||
}
|
||||
// disable interrupts
|
||||
printk("%s disable interrupts\n", __FUNCTION__);
|
||||
printk("%s disable interrupts\n", __func__);
|
||||
EDRV_REGW_WRITE(EDRV_REGW_INT_MASK, 0);
|
||||
// acknowledge all pending interrupts
|
||||
EDRV_REGW_WRITE(EDRV_REGW_INT_STATUS,
|
||||
EDRV_REGW_READ(EDRV_REGW_INT_STATUS));
|
||||
|
||||
// install interrupt handler
|
||||
printk("%s install interrupt handler\n", __FUNCTION__);
|
||||
printk("%s install interrupt handler\n", __func__);
|
||||
iResult =
|
||||
request_irq(pPciDev->irq, TgtEthIsr, IRQF_SHARED,
|
||||
DRV_NAME /*pPciDev->dev.name */ , pPciDev);
|
||||
@@ -1031,16 +1031,16 @@ static int EdrvInitOne(struct pci_dev *pPciDev, const struct pci_device_id *pId)
|
||||
|
||||
/*
|
||||
// unlock configuration registers
|
||||
printk("%s unlock configuration registers\n", __FUNCTION__);
|
||||
printk("%s unlock configuration registers\n", __func__);
|
||||
EDRV_REGB_WRITE(EDRV_REGB_CMD9346, EDRV_REGB_CMD9346_UNLOCK);
|
||||
|
||||
// check if user specified a MAC address
|
||||
printk("%s check specified MAC address\n", __FUNCTION__);
|
||||
printk("%s check specified MAC address\n", __func__);
|
||||
for (iResult = 0; iResult < 6; iResult++)
|
||||
{
|
||||
if (EdrvInstance_l.m_InitParam.m_abMyMacAddr[iResult] != 0)
|
||||
{
|
||||
printk("%s set local MAC address\n", __FUNCTION__);
|
||||
printk("%s set local MAC address\n", __func__);
|
||||
// write this MAC address to controller
|
||||
EDRV_REGDW_WRITE(EDRV_REGDW_IDR0,
|
||||
le32_to_cpu(*((DWORD*)&EdrvInstance_l.m_InitParam.m_abMyMacAddr[0])));
|
||||
@@ -1059,7 +1059,7 @@ static int EdrvInitOne(struct pci_dev *pPciDev, const struct pci_device_id *pId)
|
||||
*/
|
||||
|
||||
// allocate buffers
|
||||
printk("%s allocate buffers\n", __FUNCTION__);
|
||||
printk("%s allocate buffers\n", __func__);
|
||||
EdrvInstance_l.m_pbTxBuf =
|
||||
pci_alloc_consistent(pPciDev, EDRV_TX_BUFFER_SIZE,
|
||||
&EdrvInstance_l.m_pTxBufDma);
|
||||
@@ -1076,7 +1076,7 @@ static int EdrvInitOne(struct pci_dev *pPciDev, const struct pci_device_id *pId)
|
||||
goto Exit;
|
||||
}
|
||||
// reset pointers for Tx buffers
|
||||
printk("%s reset pointers fo Tx buffers\n", __FUNCTION__);
|
||||
printk("%s reset pointers fo Tx buffers\n", __func__);
|
||||
EDRV_REGDW_WRITE(EDRV_REGDW_TSAD0, 0);
|
||||
dwTemp = EDRV_REGDW_READ(EDRV_REGDW_TSAD0);
|
||||
EDRV_REGDW_WRITE(EDRV_REGDW_TSAD1, 0);
|
||||
@@ -1090,11 +1090,11 @@ static int EdrvInitOne(struct pci_dev *pPciDev, const struct pci_device_id *pId)
|
||||
(WORD) EDRV_REGB_READ(EDRV_REGB_COMMAND));
|
||||
|
||||
// set pointer for receive buffer in controller
|
||||
printk("%s set pointer to Rx buffer\n", __FUNCTION__);
|
||||
printk("%s set pointer to Rx buffer\n", __func__);
|
||||
EDRV_REGDW_WRITE(EDRV_REGDW_RBSTART, EdrvInstance_l.m_pRxBufDma);
|
||||
|
||||
// enable transmitter and receiver
|
||||
printk("%s enable Tx and Rx", __FUNCTION__);
|
||||
printk("%s enable Tx and Rx", __func__);
|
||||
EDRV_REGB_WRITE(EDRV_REGB_COMMAND,
|
||||
(EDRV_REGB_COMMAND_RE | EDRV_REGB_COMMAND_TE));
|
||||
printk(" Command = 0x%02X\n",
|
||||
@@ -1104,12 +1104,12 @@ static int EdrvInitOne(struct pci_dev *pPciDev, const struct pci_device_id *pId)
|
||||
EDRV_REGDW_WRITE(EDRV_REGDW_MPC, 0);
|
||||
|
||||
// set transmit configuration register
|
||||
printk("%s set Tx conf register", __FUNCTION__);
|
||||
printk("%s set Tx conf register", __func__);
|
||||
EDRV_REGDW_WRITE(EDRV_REGDW_TCR, EDRV_REGDW_TCR_DEF);
|
||||
printk(" = 0x%08X\n", EDRV_REGDW_READ(EDRV_REGDW_TCR));
|
||||
|
||||
// set receive configuration register
|
||||
printk("%s set Rx conf register", __FUNCTION__);
|
||||
printk("%s set Rx conf register", __func__);
|
||||
EDRV_REGDW_WRITE(EDRV_REGDW_RCR, EDRV_REGDW_RCR_DEF);
|
||||
printk(" = 0x%08X\n", EDRV_REGDW_READ(EDRV_REGDW_RCR));
|
||||
|
||||
@@ -1121,7 +1121,7 @@ static int EdrvInitOne(struct pci_dev *pPciDev, const struct pci_device_id *pId)
|
||||
|
||||
/*
|
||||
// enable transmitter and receiver
|
||||
printk("%s enable Tx and Rx", __FUNCTION__);
|
||||
printk("%s enable Tx and Rx", __func__);
|
||||
EDRV_REGB_WRITE(EDRV_REGB_COMMAND, (EDRV_REGB_COMMAND_RE | EDRV_REGB_COMMAND_TE));
|
||||
printk(" Command = 0x%02X\n", (WORD) EDRV_REGB_READ(EDRV_REGB_COMMAND));
|
||||
*/
|
||||
@@ -1129,11 +1129,11 @@ static int EdrvInitOne(struct pci_dev *pPciDev, const struct pci_device_id *pId)
|
||||
EDRV_REGW_WRITE(EDRV_REGW_MULINT, 0);
|
||||
|
||||
// enable interrupts
|
||||
printk("%s enable interrupts\n", __FUNCTION__);
|
||||
printk("%s enable interrupts\n", __func__);
|
||||
EDRV_REGW_WRITE(EDRV_REGW_INT_MASK, EDRV_REGW_INT_MASK_DEF);
|
||||
|
||||
Exit:
|
||||
printk("%s finished with %d\n", __FUNCTION__, iResult);
|
||||
printk("%s finished with %d\n", __func__, iResult);
|
||||
return iResult;
|
||||
}
|
||||
|
||||
|
||||
@@ -876,7 +876,7 @@ static tEplKernel EplSdoAsySeqProcess(unsigned int uiHandle_p,
|
||||
{
|
||||
/*
|
||||
PRINTF3("%s scon=%u rcon=%u\n",
|
||||
__FUNCTION__,
|
||||
__func__,
|
||||
pRecFrame_p->m_le_bSendSeqNumCon,
|
||||
pRecFrame_p->m_le_bRecSeqNumCon);
|
||||
*/
|
||||
|
||||
@@ -239,7 +239,7 @@ static void usb_alphatrack_interrupt_in_callback(struct urb *urb)
|
||||
goto exit;
|
||||
} else {
|
||||
dbg_info(&dev->intf->dev, "%s: nonzero status received: %d\n",
|
||||
__FUNCTION__, urb->status);
|
||||
__func__, urb->status);
|
||||
goto resubmit; /* maybe we can recover */
|
||||
}
|
||||
}
|
||||
@@ -261,7 +261,7 @@ static void usb_alphatrack_interrupt_in_callback(struct urb *urb)
|
||||
if(dev->offline > 0 && dev->interrupt_in_buffer[1] != 0xff) { dev->offline = 0; }
|
||||
if(dev->offline == 0 && dev->interrupt_in_buffer[1] == 0xff) { dev->offline = 1; }
|
||||
#endif
|
||||
dbg_info(&dev->intf->dev, "%s: head, tail are %x, %x\n", __FUNCTION__,dev->ring_head,dev->ring_tail);
|
||||
dbg_info(&dev->intf->dev, "%s: head, tail are %x, %x\n", __func__,dev->ring_head,dev->ring_tail);
|
||||
next_ring_head = (dev->ring_head+1) % ring_buffer_size;
|
||||
|
||||
if (next_ring_head != dev->ring_tail) {
|
||||
@@ -305,7 +305,7 @@ static void usb_alphatrack_interrupt_out_callback(struct urb *urb)
|
||||
urb->status == -ESHUTDOWN))
|
||||
dbg_info(&dev->intf->dev,
|
||||
"%s - nonzero write interrupt status received: %d\n",
|
||||
__FUNCTION__, urb->status);
|
||||
__func__, urb->status);
|
||||
atomic_dec(&dev->writes_pending);
|
||||
dev->interrupt_out_busy = 0;
|
||||
wake_up_interruptible(&dev->write_wait);
|
||||
@@ -330,7 +330,7 @@ static int usb_alphatrack_open(struct inode *inode, struct file *file)
|
||||
|
||||
if (!interface) {
|
||||
err("%s - error, can't find device for minor %d\n",
|
||||
__FUNCTION__, subminor);
|
||||
__func__, subminor);
|
||||
retval = -ENODEV;
|
||||
goto unlock_disconnect_exit;
|
||||
}
|
||||
@@ -514,7 +514,7 @@ static ssize_t usb_alphatrack_read(struct file *file, char __user *buffer, size_
|
||||
}
|
||||
dev->ring_tail = (dev->ring_tail+1) % ring_buffer_size;
|
||||
c+=INPUT_CMD_SIZE;
|
||||
dbg_info(&dev->intf->dev, "%s: head, tail are %x, %x\n", __FUNCTION__,dev->ring_head,dev->ring_tail);
|
||||
dbg_info(&dev->intf->dev, "%s: head, tail are %x, %x\n", __func__,dev->ring_head,dev->ring_tail);
|
||||
}
|
||||
retval = c;
|
||||
|
||||
@@ -573,7 +573,7 @@ static ssize_t usb_alphatrack_write(struct file *file, const char __user *buffer
|
||||
if (bytes_to_write < count)
|
||||
dev_warn(&dev->intf->dev, "Write buffer overflow, %zd bytes dropped\n",count-bytes_to_write);
|
||||
|
||||
dbg_info(&dev->intf->dev, "%s: count = %zd, bytes_to_write = %zd\n", __FUNCTION__, count, bytes_to_write);
|
||||
dbg_info(&dev->intf->dev, "%s: count = %zd, bytes_to_write = %zd\n", __func__, count, bytes_to_write);
|
||||
|
||||
if (copy_from_user(dev->interrupt_out_buffer, buffer, bytes_to_write)) {
|
||||
retval = -EFAULT;
|
||||
|
||||
@@ -335,7 +335,7 @@ static void usb_tranzport_interrupt_in_callback(struct urb *urb)
|
||||
goto exit;
|
||||
} else {
|
||||
dbg_info(&dev->intf->dev, "%s: nonzero status received: %d\n",
|
||||
__FUNCTION__, urb->status);
|
||||
__func__, urb->status);
|
||||
goto resubmit; /* maybe we can recover */
|
||||
}
|
||||
}
|
||||
@@ -345,7 +345,7 @@ static void usb_tranzport_interrupt_in_callback(struct urb *urb)
|
||||
"Urb length was %d bytes!! Do something intelligent \n", urb->actual_length);
|
||||
} else {
|
||||
dbg_info(&dev->intf->dev, "%s: received: %02x%02x%02x%02x%02x%02x%02x%02x\n",
|
||||
__FUNCTION__, dev->interrupt_in_buffer[0],dev->interrupt_in_buffer[1],dev->interrupt_in_buffer[2],dev->interrupt_in_buffer[3],dev->interrupt_in_buffer[4],dev->interrupt_in_buffer[5],dev->interrupt_in_buffer[6],dev->interrupt_in_buffer[7]);
|
||||
__func__, dev->interrupt_in_buffer[0],dev->interrupt_in_buffer[1],dev->interrupt_in_buffer[2],dev->interrupt_in_buffer[3],dev->interrupt_in_buffer[4],dev->interrupt_in_buffer[5],dev->interrupt_in_buffer[6],dev->interrupt_in_buffer[7]);
|
||||
#if SUPPRESS_EXTRA_OFFLINE_EVENTS
|
||||
if(dev->offline == 2 && dev->interrupt_in_buffer[1] == 0xff) { goto resubmit; }
|
||||
if(dev->offline == 1 && dev->interrupt_in_buffer[1] == 0xff) { dev->offline = 2; goto resubmit; }
|
||||
@@ -355,7 +355,7 @@ static void usb_tranzport_interrupt_in_callback(struct urb *urb)
|
||||
if(dev->offline == 0 && dev->interrupt_in_buffer[1] == 0xff) { dev->offline = 1; }
|
||||
|
||||
#endif
|
||||
dbg_info(&dev->intf->dev, "%s: head, tail are %x, %x\n", __FUNCTION__,dev->ring_head,dev->ring_tail);
|
||||
dbg_info(&dev->intf->dev, "%s: head, tail are %x, %x\n", __func__,dev->ring_head,dev->ring_tail);
|
||||
|
||||
next_ring_head = (dev->ring_head+1) % ring_buffer_size;
|
||||
|
||||
@@ -399,7 +399,7 @@ static void usb_tranzport_interrupt_out_callback(struct urb *urb)
|
||||
urb->status == -ESHUTDOWN))
|
||||
dbg_info(&dev->intf->dev,
|
||||
"%s - nonzero write interrupt status received: %d\n",
|
||||
__FUNCTION__, urb->status);
|
||||
__func__, urb->status);
|
||||
|
||||
dev->interrupt_out_busy = 0;
|
||||
wake_up_interruptible(&dev->write_wait);
|
||||
@@ -424,7 +424,7 @@ static int usb_tranzport_open(struct inode *inode, struct file *file)
|
||||
|
||||
if (!interface) {
|
||||
err("%s - error, can't find device for minor %d\n",
|
||||
__FUNCTION__, subminor);
|
||||
__func__, subminor);
|
||||
retval = -ENODEV;
|
||||
goto unlock_disconnect_exit;
|
||||
}
|
||||
@@ -613,7 +613,7 @@ static ssize_t usb_tranzport_read(struct file *file, char __user *buffer, size_t
|
||||
}
|
||||
|
||||
dbg_info(&dev->intf->dev, "%s: copying to userspace: %02x%02x%02x%02x%02x%02x%02x%02x\n",
|
||||
__FUNCTION__, (*dev->ring_buffer)[dev->ring_tail].cmd[0],(*dev->ring_buffer)[dev->ring_tail].cmd[1],(*dev->ring_buffer)[dev->ring_tail].cmd[2],(*dev->ring_buffer)[dev->ring_tail].cmd[3],(*dev->ring_buffer)[dev->ring_tail].cmd[4],(*dev->ring_buffer)[dev->ring_tail].cmd[5],(*dev->ring_buffer)[dev->ring_tail].cmd[6],(*dev->ring_buffer)[dev->ring_tail].cmd[7]);
|
||||
__func__, (*dev->ring_buffer)[dev->ring_tail].cmd[0],(*dev->ring_buffer)[dev->ring_tail].cmd[1],(*dev->ring_buffer)[dev->ring_tail].cmd[2],(*dev->ring_buffer)[dev->ring_tail].cmd[3],(*dev->ring_buffer)[dev->ring_tail].cmd[4],(*dev->ring_buffer)[dev->ring_tail].cmd[5],(*dev->ring_buffer)[dev->ring_tail].cmd[6],(*dev->ring_buffer)[dev->ring_tail].cmd[7]);
|
||||
|
||||
#if BUFFERED_READS
|
||||
c = 0;
|
||||
@@ -632,7 +632,7 @@ static ssize_t usb_tranzport_read(struct file *file, char __user *buffer, size_t
|
||||
// FIXME the math is wrong for going in reverse, actually, as the midi spec doesn't allow signed chars
|
||||
|
||||
dbg_info(&dev->intf->dev, "%s: trying to compress: %02x%02x%02x%02x%02x %02x %02x %02x\n",
|
||||
__FUNCTION__, (*dev->ring_buffer)[dev->ring_tail].cmd[0],(*dev->ring_buffer)[dev->ring_tail].cmd[1],(*dev->ring_buffer)[dev->ring_tail].cmd[2],(*dev->ring_buffer)[dev->ring_tail].cmd[3],(*dev->ring_buffer)[dev->ring_tail].cmd[4],(*dev->ring_buffer)[dev->ring_tail].cmd[5],(*dev->ring_buffer)[dev->ring_tail].cmd[6],(*dev->ring_buffer)[dev->ring_tail].cmd[7]);
|
||||
__func__, (*dev->ring_buffer)[dev->ring_tail].cmd[0],(*dev->ring_buffer)[dev->ring_tail].cmd[1],(*dev->ring_buffer)[dev->ring_tail].cmd[2],(*dev->ring_buffer)[dev->ring_tail].cmd[3],(*dev->ring_buffer)[dev->ring_tail].cmd[4],(*dev->ring_buffer)[dev->ring_tail].cmd[5],(*dev->ring_buffer)[dev->ring_tail].cmd[6],(*dev->ring_buffer)[dev->ring_tail].cmd[7]);
|
||||
|
||||
|
||||
if(((*dev->ring_buffer)[dev->ring_tail].cmd[6] != 0 &&
|
||||
@@ -645,7 +645,7 @@ static ssize_t usb_tranzport_read(struct file *file, char __user *buffer, size_t
|
||||
((*dev->ring_buffer)[dev->ring_tail].cmd[5] == (*dev->ring_buffer)[next_tail].cmd[5]))
|
||||
{
|
||||
dbg_info(&dev->intf->dev, "%s: should compress: %02x%02x%02x%02x%02x%02x%02x%02x\n",
|
||||
__FUNCTION__, (*dev->ring_buffer)[dev->ring_tail].cmd[0],(*dev->ring_buffer)[dev->ring_tail].cmd[1],(*dev->ring_buffer)[dev->ring_tail].cmd[2],(*dev->ring_buffer)[dev->ring_tail].cmd[3],(*dev->ring_buffer)[dev->ring_tail].cmd[4],(*dev->ring_buffer)[dev->ring_tail].cmd[5],(*dev->ring_buffer)[dev->ring_tail].cmd[6],(*dev->ring_buffer)[dev->ring_tail].cmd[7]);
|
||||
__func__, (*dev->ring_buffer)[dev->ring_tail].cmd[0],(*dev->ring_buffer)[dev->ring_tail].cmd[1],(*dev->ring_buffer)[dev->ring_tail].cmd[2],(*dev->ring_buffer)[dev->ring_tail].cmd[3],(*dev->ring_buffer)[dev->ring_tail].cmd[4],(*dev->ring_buffer)[dev->ring_tail].cmd[5],(*dev->ring_buffer)[dev->ring_tail].cmd[6],(*dev->ring_buffer)[dev->ring_tail].cmd[7]);
|
||||
|
||||
newwheel += oldwheel;
|
||||
if(oldwheel > 0 && !(newwheel > 0)) {
|
||||
@@ -673,7 +673,7 @@ static ssize_t usb_tranzport_read(struct file *file, char __user *buffer, size_t
|
||||
|
||||
dev->ring_tail = (dev->ring_tail+1) % ring_buffer_size;
|
||||
c+=8;
|
||||
dbg_info(&dev->intf->dev, "%s: head, tail are %x, %x\n", __FUNCTION__,dev->ring_head,dev->ring_tail);
|
||||
dbg_info(&dev->intf->dev, "%s: head, tail are %x, %x\n", __func__,dev->ring_head,dev->ring_tail);
|
||||
}
|
||||
retval = c;
|
||||
|
||||
@@ -684,7 +684,7 @@ static ssize_t usb_tranzport_read(struct file *file, char __user *buffer, size_t
|
||||
}
|
||||
|
||||
dev->ring_tail = (dev->ring_tail+1) % ring_buffer_size;
|
||||
dbg_info(&dev->intf->dev, "%s: head, tail are %x, %x\n", __FUNCTION__,dev->ring_head,dev->ring_tail);
|
||||
dbg_info(&dev->intf->dev, "%s: head, tail are %x, %x\n", __func__,dev->ring_head,dev->ring_tail);
|
||||
|
||||
retval = 8;
|
||||
#endif /* BUFFERED_READS */
|
||||
@@ -743,7 +743,7 @@ static ssize_t usb_tranzport_write(struct file *file, const char __user *buffer,
|
||||
if (bytes_to_write < count)
|
||||
dev_warn(&dev->intf->dev, "Write buffer overflow, %zd bytes dropped\n",count-bytes_to_write);
|
||||
|
||||
dbg_info(&dev->intf->dev, "%s: count = %zd, bytes_to_write = %zd\n", __FUNCTION__, count, bytes_to_write);
|
||||
dbg_info(&dev->intf->dev, "%s: count = %zd, bytes_to_write = %zd\n", __func__, count, bytes_to_write);
|
||||
|
||||
if (copy_from_user(dev->interrupt_out_buffer, buffer, bytes_to_write)) {
|
||||
retval = -EFAULT;
|
||||
|
||||
@@ -360,7 +360,7 @@ static irqreturn_t me0600_isr(int irq, void *dev_id, struct pt_regs *regs)
|
||||
if (instance->lintno > 1) {
|
||||
PERROR_CRITICAL
|
||||
("%s():Wrong subdevice index=%d plx:irq_status_reg=0x%04X.\n",
|
||||
__FUNCTION__, instance->lintno, inl(instance->intcsr));
|
||||
__func__, instance->lintno, inl(instance->intcsr));
|
||||
return IRQ_NONE;
|
||||
}
|
||||
|
||||
@@ -384,7 +384,7 @@ static irqreturn_t me0600_isr(int irq, void *dev_id, struct pt_regs *regs)
|
||||
} else {
|
||||
PINFO
|
||||
("%ld Shared interrupt. %s(): idx=0 plx:irq_status_reg=0x%04X\n",
|
||||
jiffies, __FUNCTION__, status);
|
||||
jiffies, __func__, status);
|
||||
ret = IRQ_NONE;
|
||||
}
|
||||
spin_unlock(instance->intcsr_lock);
|
||||
|
||||
@@ -349,7 +349,7 @@ static irqreturn_t me1400_ext_irq_isr(int irq, void *dev_id,
|
||||
(PLX_LOCAL_INT1_STATE | PLX_LOCAL_INT1_EN | PLX_PCI_INT_EN)) {
|
||||
spin_unlock(&instance->subdevice_lock);
|
||||
PINFO("%ld Shared interrupt. %s(): irq_status_reg=0x%04X\n",
|
||||
jiffies, __FUNCTION__, status);
|
||||
jiffies, __func__, status);
|
||||
return IRQ_NONE;
|
||||
}
|
||||
|
||||
|
||||
@@ -977,7 +977,7 @@ static void me1600_ao_work_control_task(struct work_struct *work)
|
||||
container_of((void *)work, me1600_ao_subdevice_t, ao_control_task);
|
||||
#endif
|
||||
|
||||
PINFO("<%s: %ld> executed. idx=%d\n", __FUNCTION__, jiffies,
|
||||
PINFO("<%s: %ld> executed. idx=%d\n", __func__, jiffies,
|
||||
instance->ao_idx);
|
||||
|
||||
if (!((instance->ao_regs_shadows)->trigger & instance->ao_idx)) { // Output was triggerd.
|
||||
@@ -1027,7 +1027,7 @@ static void me1600_ao_work_control_task(struct work_struct *work)
|
||||
queue_delayed_work(instance->me1600_workqueue,
|
||||
&instance->ao_control_task, 1);
|
||||
} else {
|
||||
PINFO("<%s> Ending control task.\n", __FUNCTION__);
|
||||
PINFO("<%s> Ending control task.\n", __func__);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -2629,11 +2629,11 @@ static irqreturn_t me4600_ai_isr(int irq, void *dev_id, struct pt_regs *regs)
|
||||
if ((irq_status & (ME4600_IRQ_STATUS_BIT_AI_HF | ME4600_IRQ_STATUS_BIT_SC | ME4600_IRQ_STATUS_BIT_LE)) == ME4600_IRQ_STATUS_BIT_LE) { //This is security check case. LE is unused. This should never ever happend.
|
||||
PINFO
|
||||
("%ld Shared interrupt. %s(): irq_status_reg=LE_IRQ\n",
|
||||
jiffies, __FUNCTION__);
|
||||
jiffies, __func__);
|
||||
} else {
|
||||
PINFO
|
||||
("%ld Shared interrupt. %s(): irq_status_reg=0x%04X\n",
|
||||
jiffies, __FUNCTION__, irq_status);
|
||||
jiffies, __func__, irq_status);
|
||||
}
|
||||
#endif
|
||||
return IRQ_NONE;
|
||||
@@ -3329,7 +3329,7 @@ static void me4600_ai_work_control_task(struct work_struct *work)
|
||||
instance =
|
||||
container_of((void *)work, me4600_ai_subdevice_t, ai_control_task);
|
||||
#endif
|
||||
PINFO("<%s: %ld> executed.\n", __FUNCTION__, jiffies);
|
||||
PINFO("<%s: %ld> executed.\n", __func__, jiffies);
|
||||
|
||||
status = inl(instance->status_reg);
|
||||
PDEBUG_REG("status_reg inl(0x%lX+0x%lX)=0x%x\n", instance->reg_base,
|
||||
@@ -3428,7 +3428,7 @@ static void me4600_ai_work_control_task(struct work_struct *work)
|
||||
queue_delayed_work(instance->me4600_workqueue,
|
||||
&instance->ai_control_task, 1);
|
||||
} else {
|
||||
PINFO("<%s> Ending control task.\n", __FUNCTION__);
|
||||
PINFO("<%s> Ending control task.\n", __func__);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -2294,7 +2294,7 @@ static irqreturn_t me4600_ao_isr(int irq, void *dev_id
|
||||
irq_status = inl(instance->irq_status_reg);
|
||||
if (!(irq_status & (ME4600_IRQ_STATUS_BIT_AO_HF << instance->ao_idx))) {
|
||||
PINFO("%ld Shared interrupt. %s(): ID=%d: status_reg=0x%04X\n",
|
||||
jiffies, __FUNCTION__, instance->ao_idx, irq_status);
|
||||
jiffies, __func__, instance->ao_idx, irq_status);
|
||||
return IRQ_NONE;
|
||||
}
|
||||
|
||||
@@ -3009,7 +3009,7 @@ static void me4600_ao_work_control_task(
|
||||
instance =
|
||||
container_of((void *)work, me4600_ao_subdevice_t, ao_control_task);
|
||||
#endif
|
||||
PINFO("<%s: %ld> executed. idx=%d\n", __FUNCTION__, jiffies,
|
||||
PINFO("<%s: %ld> executed. idx=%d\n", __func__, jiffies,
|
||||
instance->ao_idx);
|
||||
|
||||
status = inl(instance->status_reg);
|
||||
@@ -3316,7 +3316,7 @@ static void me4600_ao_work_control_task(
|
||||
queue_delayed_work(instance->me4600_workqueue,
|
||||
&instance->ao_control_task, 1);
|
||||
} else {
|
||||
PINFO("<%s> Ending control task.\n", __FUNCTION__);
|
||||
PINFO("<%s> Ending control task.\n", __func__);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -356,7 +356,7 @@ static irqreturn_t me4600_ext_irq_isr(int irq, void *dev_id,
|
||||
irq_status = inl(instance->irq_status_reg);
|
||||
if (!(irq_status & ME4600_IRQ_STATUS_BIT_EX)) {
|
||||
PINFO("%ld Shared interrupt. %s(): irq_status_reg=0x%04X\n",
|
||||
jiffies, __FUNCTION__, irq_status);
|
||||
jiffies, __func__, irq_status);
|
||||
return IRQ_NONE;
|
||||
}
|
||||
|
||||
|
||||
@@ -863,7 +863,7 @@ static int me6000_ao_io_single_write(me_subdevice_t * subdevice,
|
||||
|
||||
/// @note When flag 'ME_IO_SINGLE_TYPE_TRIG_SYNCHRONOUS' is set than output is triggered. ALWAYS!
|
||||
|
||||
PINFO("<%s> start mode= 0x%08x %s\n", __FUNCTION__, mode,
|
||||
PINFO("<%s> start mode= 0x%08x %s\n", __func__, mode,
|
||||
(flags & ME_IO_SINGLE_TYPE_TRIG_SYNCHRONOUS) ? "SYNCHRONOUS" :
|
||||
"");
|
||||
if (instance->fifo & ME6000_AO_HAS_FIFO) { // FIFO - Continous mode
|
||||
@@ -1663,7 +1663,7 @@ static int me6000_ao_io_stream_start(me_subdevice_t * subdevice,
|
||||
|
||||
status = inl(instance->status_reg);
|
||||
//Start state machine and interrupts
|
||||
PINFO("<%s:%d> Start state machine.\n", __FUNCTION__, __LINE__);
|
||||
PINFO("<%s:%d> Start state machine.\n", __func__, __LINE__);
|
||||
ctrl &= ~(ME6000_AO_CTRL_BIT_STOP | ME6000_AO_CTRL_BIT_IMMEDIATE_STOP);
|
||||
if (instance->start_mode == ME6000_AO_EXT_TRIG) {
|
||||
PDEBUG("DIGITAL TRIGGER\n");
|
||||
@@ -1671,7 +1671,7 @@ static int me6000_ao_io_stream_start(me_subdevice_t * subdevice,
|
||||
}
|
||||
if (!(status & ME6000_AO_STATUS_BIT_HF)) { //More than half!
|
||||
if ((ctrl & ME6000_AO_CTRL_MODE_MASK) == ME6000_AO_MODE_CONTINUOUS) { //Enable IRQ only when hardware_continous is set and FIFO is more than half
|
||||
PINFO("<%s:%d> Start interrupts.\n", __FUNCTION__,
|
||||
PINFO("<%s:%d> Start interrupts.\n", __func__,
|
||||
__LINE__);
|
||||
ctrl |= ME6000_AO_CTRL_BIT_ENABLE_IRQ;
|
||||
}
|
||||
@@ -1682,7 +1682,7 @@ static int me6000_ao_io_stream_start(me_subdevice_t * subdevice,
|
||||
spin_unlock_irqrestore(&instance->subdevice_lock, cpu_flags);
|
||||
|
||||
//Trigger output
|
||||
PINFO("<%s> start mode= 0x%x %s\n", __FUNCTION__, instance->start_mode,
|
||||
PINFO("<%s> start mode= 0x%x %s\n", __func__, instance->start_mode,
|
||||
(flags & ME_IO_SINGLE_TYPE_TRIG_SYNCHRONOUS) ? "SYNCHRONOUS" :
|
||||
"");
|
||||
if (flags & ME_IO_SINGLE_TYPE_TRIG_SYNCHRONOUS) { //Trigger outputs
|
||||
@@ -1777,7 +1777,7 @@ static int me6000_ao_io_stream_start(me_subdevice_t * subdevice,
|
||||
status = inl(instance->status_reg);
|
||||
if (!(status & ME6000_AO_STATUS_BIT_HF)) { //More than half!
|
||||
spin_lock_irqsave(&instance->subdevice_lock, cpu_flags);
|
||||
PINFO("<%s:%d> Start interrupts.\n", __FUNCTION__,
|
||||
PINFO("<%s:%d> Start interrupts.\n", __func__,
|
||||
__LINE__);
|
||||
ctrl = inl(instance->ctrl_reg);
|
||||
ctrl |= ME6000_AO_CTRL_BIT_ENABLE_IRQ;
|
||||
@@ -1819,7 +1819,7 @@ static int me6000_ao_io_stream_start(me_subdevice_t * subdevice,
|
||||
spin_lock_irqsave(&instance->subdevice_lock,
|
||||
cpu_flags);
|
||||
PINFO("<%s:%d> Start interrupts.\n",
|
||||
__FUNCTION__, __LINE__);
|
||||
__func__, __LINE__);
|
||||
ctrl = inl(instance->ctrl_reg);
|
||||
ctrl |= ME6000_AO_CTRL_BIT_ENABLE_IRQ;
|
||||
outl(ctrl, instance->ctrl_reg);
|
||||
@@ -2346,7 +2346,7 @@ static irqreturn_t me6000_ao_isr(int irq, void *dev_id, struct pt_regs *regs)
|
||||
irq_status = inl(instance->irq_status_reg);
|
||||
if (!(irq_status & (ME6000_IRQ_STATUS_BIT_AO_HF << instance->ao_idx))) {
|
||||
PINFO("%ld Shared interrupt. %s(): ID=%d: status_reg=0x%04X\n",
|
||||
jiffies, __FUNCTION__, instance->ao_idx, irq_status);
|
||||
jiffies, __func__, instance->ao_idx, irq_status);
|
||||
return IRQ_NONE;
|
||||
}
|
||||
|
||||
@@ -2861,7 +2861,7 @@ int inline ao_stop_immediately(me6000_ao_subdevice_t * instance)
|
||||
}
|
||||
}
|
||||
|
||||
PINFO("<%s> Wait for stop: %d\n", __FUNCTION__, i);
|
||||
PINFO("<%s> Wait for stop: %d\n", __func__, i);
|
||||
|
||||
//Still working!
|
||||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
@@ -3132,7 +3132,7 @@ static void me6000_ao_work_control_task(
|
||||
instance =
|
||||
container_of((void *)work, me6000_ao_subdevice_t, ao_control_task);
|
||||
#endif
|
||||
PINFO("<%s: %ld> executed. idx=%d\n", __FUNCTION__, jiffies,
|
||||
PINFO("<%s: %ld> executed. idx=%d\n", __func__, jiffies,
|
||||
instance->ao_idx);
|
||||
|
||||
status = inl(instance->status_reg);
|
||||
@@ -3550,7 +3550,7 @@ static void me6000_ao_work_control_task(
|
||||
queue_delayed_work(instance->me6000_workqueue,
|
||||
&instance->ao_control_task, 1);
|
||||
} else {
|
||||
PINFO("<%s> Ending control task.\n", __FUNCTION__);
|
||||
PINFO("<%s> Ending control task.\n", __func__);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -536,7 +536,7 @@ static irqreturn_t me8100_isr(int irq, void *dev_id, struct pt_regs *regs)
|
||||
PLX_INTCSR_LOCAL_INT1_EN)) {
|
||||
PINFO
|
||||
("%ld Shared interrupt. %s(): idx=0 plx:irq_status_reg=0x%04X\n",
|
||||
jiffies, __FUNCTION__, icsr);
|
||||
jiffies, __func__, icsr);
|
||||
return IRQ_NONE;
|
||||
}
|
||||
} else if (instance->di_idx == 1) {
|
||||
@@ -547,11 +547,11 @@ static irqreturn_t me8100_isr(int irq, void *dev_id, struct pt_regs *regs)
|
||||
PLX_INTCSR_LOCAL_INT2_EN)) {
|
||||
PINFO
|
||||
("%ld Shared interrupt. %s(): idx=1 plx:irq_status_reg=0x%04X\n",
|
||||
jiffies, __FUNCTION__, icsr);
|
||||
jiffies, __func__, icsr);
|
||||
return IRQ_NONE;
|
||||
}
|
||||
} else {
|
||||
PERROR("%s():Wrong interrupt idx=%d csr=0x%X.\n", __FUNCTION__,
|
||||
PERROR("%s():Wrong interrupt idx=%d csr=0x%X.\n", __func__,
|
||||
instance->di_idx, icsr);
|
||||
return IRQ_NONE;
|
||||
}
|
||||
|
||||
@@ -570,7 +570,7 @@ static irqreturn_t me8200_isr(int irq, void *dev_id, struct pt_regs *regs)
|
||||
if (!irq_status) {
|
||||
PINFO
|
||||
("%ld Shared interrupt. %s(): idx=%d irq_status_reg=0x%04X\n",
|
||||
jiffies, __FUNCTION__, instance->di_idx, irq_status);
|
||||
jiffies, __func__, instance->di_idx, irq_status);
|
||||
return IRQ_NONE;
|
||||
}
|
||||
|
||||
@@ -658,7 +658,7 @@ static irqreturn_t me8200_isr_EX(int irq, void *dev_id, struct pt_regs *regs)
|
||||
if (!irq_status) {
|
||||
PINFO
|
||||
("%ld Shared interrupt. %s(): idx=%d irq_status_reg=0x%04X\n",
|
||||
jiffies, __FUNCTION__, instance->di_idx, irq_status);
|
||||
jiffies, __func__, instance->di_idx, irq_status);
|
||||
return IRQ_NONE;
|
||||
}
|
||||
|
||||
|
||||
@@ -475,7 +475,7 @@ static irqreturn_t me8200_do_isr(int irq, void *dev_id, struct pt_regs *regs)
|
||||
(ME8200_DO_IRQ_STATUS_BIT_ACTIVE << instance->do_idx))) {
|
||||
PINFO
|
||||
("%ld Shared interrupt. %s(): idx=%d irq_status_reg=0x%04X\n",
|
||||
jiffies, __FUNCTION__, instance->do_idx, irq_status);
|
||||
jiffies, __func__, instance->do_idx, irq_status);
|
||||
return IRQ_NONE;
|
||||
}
|
||||
|
||||
|
||||
@@ -66,21 +66,21 @@
|
||||
|
||||
#ifdef MEDEBUG_DEBUG
|
||||
# define PDEBUG(fmt, args...) \
|
||||
printk(KERN_DEBUG"ME_DRV D: <%s> " fmt, __FUNCTION__, ##args)
|
||||
printk(KERN_DEBUG"ME_DRV D: <%s> " fmt, __func__, ##args)
|
||||
#else
|
||||
# define PDEBUG(fmt, args...)
|
||||
#endif
|
||||
|
||||
#ifdef MEDEBUG_DEBUG_LOCKS
|
||||
# define PDEBUG_LOCKS(fmt, args...) \
|
||||
printk(KERN_DEBUG"ME_DRV L: <%s> " fmt, __FUNCTION__, ##args)
|
||||
printk(KERN_DEBUG"ME_DRV L: <%s> " fmt, __func__, ##args)
|
||||
#else
|
||||
# define PDEBUG_LOCKS(fmt, args...)
|
||||
#endif
|
||||
|
||||
#ifdef MEDEBUG_DEBUG_REG
|
||||
# define PDEBUG_REG(fmt, args...) \
|
||||
printk(KERN_DEBUG"ME_DRV R: <%s:%d> REG:" fmt, __FUNCTION__, __LINE__, ##args)
|
||||
printk(KERN_DEBUG"ME_DRV R: <%s:%d> REG:" fmt, __func__, __LINE__, ##args)
|
||||
#else
|
||||
# define PDEBUG_REG(fmt, args...)
|
||||
#endif
|
||||
@@ -108,7 +108,7 @@
|
||||
|
||||
//This debug is only to detect logical errors!
|
||||
# define PSECURITY(fmt, args...) \
|
||||
printk(KERN_CRIT"ME_DRV SECURITY: <%s:%s:%i> " fmt, __FILE__, __FUNCTION__, __LINE__, ##args)
|
||||
printk(KERN_CRIT"ME_DRV SECURITY: <%s:%s:%i> " fmt, __FILE__, __func__, __LINE__, ##args)
|
||||
//This debug is to keep track in customers' system
|
||||
# define PLOG(fmt, args...) \
|
||||
printk(KERN_INFO"ME_DRV: " fmt, ##args)
|
||||
@@ -116,7 +116,7 @@
|
||||
//This debug is to check new parts during development
|
||||
#ifdef MEDEBUG_DEVELOP
|
||||
# define PDEVELOP(fmt, args...) \
|
||||
printk(KERN_CRIT"ME_DRV: <%s:%s:%i> " fmt, __FILE__, __FUNCTION__, __LINE__, ##args)
|
||||
printk(KERN_CRIT"ME_DRV: <%s:%s:%i> " fmt, __FILE__, __func__, __LINE__, ##args)
|
||||
#else
|
||||
# define PDEVELOP(fmt, args...)
|
||||
#endif
|
||||
|
||||
@@ -1933,7 +1933,7 @@ u16_t zfAggRx(zdev_t* dev, zbuf_t* buf, struct zsAdditionInfo *addInfo, struct a
|
||||
*/
|
||||
|
||||
/* zm_msg2_agg(ZM_LV_0, "queue seq = ", seq_no);
|
||||
* DbgPrint("%s:%s%lxh %s%lxh\n", __FUNCTION__, "queue seq=", seq_no,
|
||||
* DbgPrint("%s:%s%lxh %s%lxh\n", __func__, "queue seq=", seq_no,
|
||||
* "; seq_start=", tid_rx->seq_start);
|
||||
*/
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
/* Buffer management */
|
||||
#ifdef ZM_ENABLE_BUFFER_DEBUG
|
||||
extern zbuf_t* zfwBufAllocateWithContext(zdev_t* dev, u16_t len, u8_t *functionName, ULONG line);
|
||||
#define zfwBufAllocate(dev, len) zfwBufAllocateWithContext(dev, len, (u8_t *)__FUNCTION__, __LINE__)
|
||||
#define zfwBufAllocate(dev, len) zfwBufAllocateWithContext(dev, len, (u8_t *)__func__, __LINE__)
|
||||
#else
|
||||
extern zbuf_t* zfwBufAllocate(zdev_t* dev, u16_t len);
|
||||
#endif
|
||||
|
||||
@@ -137,7 +137,7 @@ extern const u8_t zg11gRateTbl[8];
|
||||
|
||||
#ifdef ZM_ENABLE_BUFFER_TRACE
|
||||
extern void zfwBufTrace(zdev_t* dev, zbuf_t *buf, u8_t *functionName);
|
||||
#define ZM_BUFFER_TRACE(dev, buf) zfwBufTrace(dev, buf, __FUNCTION__);
|
||||
#define ZM_BUFFER_TRACE(dev, buf) zfwBufTrace(dev, buf, __func__);
|
||||
#else
|
||||
#define ZM_BUFFER_TRACE(dev, buf)
|
||||
#endif
|
||||
|
||||
@@ -106,14 +106,14 @@
|
||||
|
||||
/***** Debug message *****/
|
||||
#if 0
|
||||
#define zm_debug_msg0(msg) printk("%s:%s\n", __FUNCTION__, msg);
|
||||
#define zm_debug_msg1(msg, val) printk("%s:%s%ld\n", __FUNCTION__, \
|
||||
#define zm_debug_msg0(msg) printk("%s:%s\n", __func__, msg);
|
||||
#define zm_debug_msg1(msg, val) printk("%s:%s%ld\n", __func__, \
|
||||
msg, (u32_t)val);
|
||||
#define zm_debug_msg2(msg, val) printk("%s:%s%lxh\n", __FUNCTION__, \
|
||||
#define zm_debug_msg2(msg, val) printk("%s:%s%lxh\n", __func__, \
|
||||
msg, (u32_t)val);
|
||||
#define zm_debug_msg_s(msg, val) printk("%s:%s%s\n", __FUNCTION__, \
|
||||
#define zm_debug_msg_s(msg, val) printk("%s:%s%s\n", __func__, \
|
||||
msg, val);
|
||||
#define zm_debug_msg_p(msg, val1, val2) printk("%s:%s%01ld.%02ld\n", __FUNCTION__, \
|
||||
#define zm_debug_msg_p(msg, val1, val2) printk("%s:%s%01ld.%02ld\n", __func__, \
|
||||
msg, (val1/val2), (((val1*100)/val2)%100));
|
||||
#define zm_dbg(S) printk S
|
||||
#else
|
||||
@@ -127,7 +127,7 @@
|
||||
|
||||
#define zm_assert(expr) if(!(expr)) { \
|
||||
printk( "Atheors Assertion failed! %s,%s,%s,line=%d\n", \
|
||||
#expr,__FILE__,__FUNCTION__,__LINE__); \
|
||||
#expr,__FILE__,__func__,__LINE__); \
|
||||
}
|
||||
|
||||
#define DbgPrint printk
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user