diff -r d9cf40facbc4 -r 99905e297f33 master/cdev.c --- a/master/cdev.c Mon May 03 18:07:57 2010 +0200 +++ b/master/cdev.c Thu May 06 11:39:08 2010 +0200 @@ -3501,7 +3501,8 @@ priv = kmalloc(sizeof(ec_cdev_priv_t), GFP_KERNEL); if (!priv) { - EC_ERR("Failed to allocate memory for private data structure.\n"); + EC_MASTER_ERR(cdev->master, + "Failed to allocate memory for private data structure.\n"); return -ENOMEM; }