mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-27 04:32:16 +03:00
Update SPL to use new debug infrastructure. This means:
- Replacing all BUG_ON()'s with proper ASSERT()'s - Using ENTRY,EXIT,GOTO, and RETURN macro to instument call paths git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@78 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
@@ -2,6 +2,12 @@
|
||||
#include <sys/time.h>
|
||||
#include "config.h"
|
||||
|
||||
#ifdef DEBUG_SUBSYSTEM
|
||||
#undef DEBUG_SUBSYSTEM
|
||||
#endif
|
||||
|
||||
#define DEBUG_SUBSYSTEM S_TIME
|
||||
|
||||
void
|
||||
__gethrestime(timestruc_t *ts)
|
||||
{
|
||||
@@ -13,7 +19,7 @@ int
|
||||
__clock_gettime(clock_type_t type, timespec_t *tp)
|
||||
{
|
||||
/* Only support CLOCK_REALTIME+__CLOCK_REALTIME0 for now */
|
||||
BUG_ON(!((type == CLOCK_REALTIME) || (type == __CLOCK_REALTIME0)));
|
||||
ASSERT((type == CLOCK_REALTIME) || (type == __CLOCK_REALTIME0));
|
||||
|
||||
getnstimeofday(tp);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user