X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/9db780972e5c4a622a7f61bcc1e65d84fe52e07c..626f7414aee3ecd51ab35d093314919528f67b12:/lincan/src/hms30c7202_can.c diff --git a/lincan/src/hms30c7202_can.c b/lincan/src/hms30c7202_can.c index fc13043..af9f729 100644 --- a/lincan/src/hms30c7202_can.c +++ b/lincan/src/hms30c7202_can.c @@ -40,7 +40,7 @@ */ int hms30c7202_request_io(struct candevice_t *candev) { - DEBUGMSG("(c%d)calling hms30c7202_request_io(...)\n", pchip->chip_nr); + DEBUGMSG("(c%d)calling hms30c7202_request_io(...)\n", candev->chip[0]->chip_idx); if(!can_request_mem_region(candev->io_addr, IO_RANGE, DEVICE_NAME )) { CANMSG("hmsc30c7202_can failed to request mem region %lx.\n", @@ -330,7 +330,7 @@ int hms30c7202_init_chip_data(struct candevice_t *candev, int chipnr) int hms30c7202_init_obj_data(struct chip_t *chip, int objnr) { - DEBUGMSG("(c%d)calling hms30c7202_init_obj_data( ...)\n", pchip->chip_nr); + DEBUGMSG("(c%d)calling hms30c7202_init_obj_data( ...)\n", chip->chip_idx); /* It seems, that there is no purpose to setup object base address */ chip->msgobj[objnr]->obj_base_addr=0;