Commit dfe2c626 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] remove concatenation with __FUNCTION__ sound/*

From: Tony Breeds <tony@bakeyournoodle.com>
parent 93616c25
......@@ -369,7 +369,7 @@ static void set_adc_rate(struct au1000_state *s, unsigned rate)
adc_rate = rdcodec(s->codec, AC97_PCM_LR_ADC_RATE);
#ifdef AU1000_VERBOSE_DEBUG
dbg(__FUNCTION__ ": set to %d Hz", adc_rate);
dbg("%s: set to %d Hz", __FUNCTION__, adc_rate);
#endif
// some codec's don't allow unequal DAC and ADC rates, in which case
......@@ -420,7 +420,7 @@ static void set_dac_rate(struct au1000_state *s, unsigned rate)
dac_rate = rdcodec(s->codec, AC97_PCM_FRONT_DAC_RATE);
#ifdef AU1000_VERBOSE_DEBUG
dbg(__FUNCTION__ ": set to %d Hz", dac_rate);
dbg("%s: set to %d Hz", __FUNCTION__, dac_rate);
#endif
// some codec's don't allow unequal DAC and ADC rates, in which case
......@@ -989,7 +989,7 @@ static int translate_from_user(struct dmabuf *db,
for (sample = 0; sample < num_samples; sample++) {
if (copy_from_user(usersample, userbuf,
db->user_bytes_per_sample)) {
dbg(__FUNCTION__ ": fault");
dbg("%s: fault", __FUNCTION__);
return -EFAULT;
}
......@@ -1053,7 +1053,7 @@ static int translate_to_user(struct dmabuf *db,
if (copy_to_user(userbuf, usersample,
db->user_bytes_per_sample)) {
dbg(__FUNCTION__ ": fault");
dbg("%s: fault", __FUNCTION__);
return -EFAULT;
}
......@@ -1848,9 +1848,9 @@ static int au1000_open(struct inode *inode, struct file *file)
#ifdef AU1000_VERBOSE_DEBUG
if (file->f_flags & O_NONBLOCK)
dbg(__FUNCTION__ ": non-blocking");
dbg("%s: non-blocking", __FUNCTION__);
else
dbg(__FUNCTION__ ": blocking");
dbg("%s: blocking", __FUNCTION__);
#endif
file->private_data = s;
......
......@@ -1779,9 +1779,9 @@ static int it8172_open(struct inode *inode, struct file *file)
#ifdef IT8172_VERBOSE_DEBUG
if (file->f_flags & O_NONBLOCK)
dbg(__FUNCTION__ ": non-blocking");
dbg("%s: non-blocking", __FUNCTION__);
else
dbg(__FUNCTION__ ": blocking");
dbg("%s: blocking", __FUNCTION__);
#endif
for (list = devs.next; ; list = list->next) {
......
......@@ -872,7 +872,7 @@ int rme96xx_init(rme96xx_info* s)
int status;
unsigned short rev;
DBG(printk(__FUNCTION__"\n"));
DBG(printk("%s\n", __FUNCTION__));
numcards++;
s->magic = RME96xx_MAGIC;
......@@ -972,7 +972,7 @@ static int __devinit rme96xx_probe(struct pci_dev *pcidev, const struct pci_devi
int i;
rme96xx_info *s;
DBG(printk(__FUNCTION__"\n"));
DBG(printk("%s\n", __FUNCTION__));
if (pcidev->irq == 0)
return -1;
......@@ -1501,7 +1501,7 @@ static int rme96xx_release(struct inode *in, struct file *file)
{
struct dmabuf * dma = (struct dmabuf*) file->private_data;
/* int hwp; ... was unused HP20020201 */
DBG(printk(__FUNCTION__"\n"));
DBG(printk("%s\n", __FUNCTION__));
COMM ("draining")
if (dma->open_mode & FMODE_WRITE) {
......
......@@ -196,8 +196,8 @@ static void dbgassert(const char *fcn, int line, const char *expr)
#define ASSERT(e) ((e) ? (void) 0 : dbgassert(__FUNCTION__, __LINE__, #e))
#define DBGDO(x) x
#define DBGX(fmt, args...) (in_interrupt() ? 0 : printk(KERN_ERR fmt, ##args))
#define DBGP(fmt, args...) (DBGX(__FUNCTION__ ": " fmt, ##args))
#define DBGE(fmt, args...) (DBGX(__FUNCTION__ fmt, ##args))
#define DBGP(fmt, args...) (DBGX("%s: " fmt, __FUNCTION__ , ##args))
#define DBGE(fmt, args...) (DBGX("%s" fmt, __FUNCTION__ , ##args))
#define DBGC(rtn) (DBGP("calling %s\n", rtn))
#define DBGR() (DBGP("returning\n"))
#define DBGXV(fmt, args...) (shut_up ? 0 : DBGX(fmt, ##args))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment