---
title: "调试信息替代printk方法"
author: "koliy"
date: "2013-08-07T17:04:36Z"
tags: []
categories: ["编程语言"]
slug: "printk"
draft: false
lastmod: "2013-08-07T17:04:36Z"
id: 1921629
url: "https://koliy.iteye.com/blog/1921629"
---

#define DEBUG
#ifdef DEBUG
#define DBG(stuff...) printk(KERN_DEBUG"-------> " stuff)
#else
#define DBG(fmt, args...) do{}while(0)
#endif
