diff options
author | Tom Rini <trini@ti.com> | 2012-09-27 19:06:07 (GMT) |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-09-27 19:06:07 (GMT) |
commit | cec2655c3b3b86f14a6a5c2cbb01833f7e3974be (patch) | |
tree | 8428f50b579b3656fd24056ae3c6304f58aee620 /drivers/net/npe/include/IxOsalOsAssert.h | |
parent | c57b953da923c6402afc1c890c21fdc7d5a2cc4a (diff) | |
parent | ee0f60df0b71092cd632fc6651f4157a2d252598 (diff) | |
download | u-boot-cec2655c3b3b86f14a6a5c2cbb01833f7e3974be.tar.xz |
Merge branch 'master' of git://git.denx.de/u-boot-net
Diffstat (limited to 'drivers/net/npe/include/IxOsalOsAssert.h')
-rw-r--r-- | drivers/net/npe/include/IxOsalOsAssert.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/npe/include/IxOsalOsAssert.h b/drivers/net/npe/include/IxOsalOsAssert.h new file mode 100644 index 0000000..e4c3e1f --- /dev/null +++ b/drivers/net/npe/include/IxOsalOsAssert.h @@ -0,0 +1,10 @@ +#ifndef IxOsalOsAssert_H +#define IxOsalOsAssert_H + +#define IX_OSAL_OS_ASSERT(c) if(!(c)) \ + { \ + ixOsalLog (IX_OSAL_LOG_LVL_ERROR, IX_OSAL_LOG_DEV_STDOUT, "Assertion failure \n", 0, 0, 0, 0, 0, 0);\ + while(1); \ + } + +#endif /* IxOsalOsAssert_H */ |