Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
selftest.c File Reference
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/errno.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <linux/device.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   "### %s(): " fmt, __func__
 
#define selftest(result, fmt,...)
 

Functions

 late_initcall (of_selftest)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    "### %s(): " fmt, __func__

Definition at line 5 of file selftest.c.

#define selftest (   result,
  fmt,
  ... 
)
Value:
{ \
selftest_passed &= (result); \
if (!(result)) \
pr_err("FAIL %s:%i " fmt, __FILE__, __LINE__, ##__VA_ARGS__); \
}

Definition at line 18 of file selftest.c.

Function Documentation

late_initcall ( of_selftest  )