]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/c_can_irq.c
LinCAN version updated to 0.3
[lincan.git] / lincan / src / c_can_irq.c
index 5257d0f016c8ba5feb3860aba1a02cfeb24f6f94..29a85a4b4fa86c099cc95bba623516e7dbeb788d 100644 (file)
@@ -6,7 +6,7 @@
  * Rewritten for new CAN queues by Pavel Pisa - OCERA team member
  * email:pisa@cmp.felk.cvut.cz
  * This software is released under the GPL-License.
- * Version lincan-0.2  9 Jul 2003
+ * Version lincan-0.3  17 Jun 2004
  */
  
 #include "../include/can.h"
@@ -140,7 +140,7 @@ inline void c_can_irq_read_handler( struct chip_t *pchip,
                }
                DEBUGMSG("(c%dm%d)Received Message:\n",
                      pchip->chip_idx, pmsgobj->object);
-               DEBUGMSG(" id = %d\n",
+               DEBUGMSG(" id = %ld\n",
                      pmsgobj->rx_msg.id);
                DEBUGMSG(" length = %d\n",
                      pmsgobj->rx_msg.length);
@@ -233,13 +233,13 @@ can_irqreturn_t c_can_irq_handler(int irq, void *dev_id, struct pt_regs *regs)
        if(!irqreg) {
                DEBUGMSG( "\n(c%d)IRQ handler: addr=%.8lx spurious interrupt\n",
                        pchip->chip_idx,
-                       (long)( pchip->/*v*/base_addr/* + CCSR*/));
+                       (long)( pchip->/*v*/chip_base_addr/* + CCSR*/));
                return CAN_IRQ_NONE;
        }
        
        DEBUGMSG( "\n(c%d)IRQ handler: addr=%.8lx irqreg=0x%.4x\n",
             pchip->chip_idx,
-            (long)( pchip->/*v*/base_addr/* + CCSR*/),
+            (long)( pchip->/*v*/chip_base_addr/* + CCSR*/),
             irqreg);