break;
default:
rt_printk("Warning %s() called with invalid register\n",
- __FUNCTION__);
+ __func__);
rt_printk("reg is %d\n", reg);
break;
}
break;
default:
rt_printk("%s: bug! unhandled ao reference voltage\n",
- __FUNCTION__);
+ __func__);
break;
}
switch (krange->max + krange->min) {
break;
default:
rt_printk("%s: bug! unhandled ao offset voltage\n",
- __FUNCTION__);
+ __func__);
break;
}
if (timed)
break;
default:
rt_printk("%s: unhandled register 0x%x in switch.\n",
- __FUNCTION__, reg);
+ __func__, reg);
BUG();
return 0;
break;
return NI_PFI_OUTPUT_G_GATE0;
break;
default:
- rt_printk("%s: bug, unhandled case in switch.\n", __FUNCTION__);
+ rt_printk("%s: bug, unhandled case in switch.\n", __func__);
break;
}
return 0;
}
if (best_period_picosec == 0) {
rt_printk("%s: bug, failed to find pll parameters\n",
- __FUNCTION__);
+ __func__);
return -EIO;
}
*freq_divider = best_div;
if (period_ns < min_period_ns || period_ns > max_period_ns) {
rt_printk
("%s: you must specify an input clock frequency between %i and %i nanosec "
- "for the phased-lock loop.\n", __FUNCTION__,
+ "for the phased-lock loop.\n", __func__,
min_period_ns, max_period_ns);
return -EINVAL;
}
if (i == timeout) {
rt_printk
("%s: timed out waiting for PLL to lock to reference clock source %i with period %i ns.\n",
- __FUNCTION__, source, period_ns);
+ __func__, source, period_ns);
return -ETIMEDOUT;
}
return 3;
if (period_ns == 0) {
rt_printk
("%s: we don't handle an unspecified clock period correctly yet, returning error.\n",
- __FUNCTION__);
+ __func__);
return -EINVAL;
} else {
devpriv->clock_ns = period_ns;
else {
rt_printk
("%s: invalid source for channel=%i, channel %i is always the RTSI clock for pre-m-series boards.\n",
- __FUNCTION__, chan,
+ __func__, chan,
old_RTSI_clock_channel);
return 0;
}
} else {
if (chan == old_RTSI_clock_channel)
return NI_RTSI_OUTPUT_RTSI_OSC;
- rt_printk("%s: bug! should never get here?\n", __FUNCTION__);
+ rt_printk("%s: bug! should never get here?\n", __func__);
return 0;
}
}
}
/* printk("looped %i times waiting for idle\n", i); */
if (i == timeout) {
- rt_printk("%s: %s: timeout\n", __FILE__, __FUNCTION__);
+ rt_printk("%s: %s: timeout\n", __FILE__, __func__);
return -ETIME;
}
return 0;