cregit-Linux how code gets into the kernel

Release 4.16 drivers/usb/musb/musb_debug.h

Directory: drivers/usb/musb
// SPDX-License-Identifier: GPL-2.0
/*
 * MUSB OTG driver debug defines
 *
 * Copyright 2005 Mentor Graphics Corporation
 * Copyright (C) 2005-2006 by Texas Instruments
 * Copyright (C) 2006-2007 Nokia Corporation
 */

#ifndef __MUSB_LINUX_DEBUG_H__

#define __MUSB_LINUX_DEBUG_H__


#define yprintk(facility, format, args...) \
	do { printk(facility "%s %d: " format , \
        __func__, __LINE__ , ## args); } while (0)

#define WARNING(fmt, args...) yprintk(KERN_WARNING, fmt, ## args)

#define INFO(fmt, args...) yprintk(KERN_INFO, fmt, ## args)

#define ERR(fmt, args...) yprintk(KERN_ERR, fmt, ## args)

void musb_dbg(struct musb *musb, const char *fmt, ...);

#ifdef CONFIG_DEBUG_FS
int musb_init_debugfs(struct musb *musb);
void musb_exit_debugfs(struct musb *musb);
#else

static inline int musb_init_debugfs(struct musb *musb) { return 0; }

Contributors

PersonTokensPropCommitsCommitProp
Felipe Balbi15100.00%1100.00%
Total15100.00%1100.00%


static inline void musb_exit_debugfs(struct musb *musb) { }

Contributors

PersonTokensPropCommitsCommitProp
Felipe Balbi11100.00%1100.00%
Total11100.00%1100.00%

#endif #endif /* __MUSB_LINUX_DEBUG_H__ */

Overall Contributors

PersonTokensPropCommitsCommitProp
Felipe Balbi10385.12%240.00%
Bin Liu1613.22%120.00%
Greg Kroah-Hartman21.65%240.00%
Total121100.00%5100.00%
Directory: drivers/usb/musb
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.