> That is indeed a problem: the pointer will be NULL if there is no parent > device (such as in softdog.c). Otherwise it should never be NULL. Okay, this spoils my err_dev solution. So, we probably go this route then: pr_("watchdog%d: \n", wdd->id); ?