X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Fbasic-test%2Fyaffs_osglue.c;h=4a149e277588dd9bc4387bcfe02c57eb3a495186;hp=7eaafc933eaf0194aeaad86d17bdf809d2cae202;hb=8b348464b712730cbc18391924d805c1cab7b9ff;hpb=3c25b14489d1ef9c4ba073dacd9a9f8bb218fe32 diff --git a/direct/basic-test/yaffs_osglue.c b/direct/basic-test/yaffs_osglue.c index 7eaafc9..4a149e2 100644 --- a/direct/basic-test/yaffs_osglue.c +++ b/direct/basic-test/yaffs_osglue.c @@ -1,7 +1,7 @@ /* * YAFFS: Yet Another Flash File System. A NAND-flash specific file system. * - * Copyright (C) 2002-2010 Aleph One Ltd. + * Copyright (C) 2002-2011 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by Charles Manning @@ -19,7 +19,7 @@ #include "yaffs_nandemul2k.h" #include "yaffs_norif1.h" #include "yaffs_trace.h" - +#include #include @@ -75,7 +75,7 @@ void yaffsfs_LockInit(void) u32 yaffsfs_CurrentTime(void) { - return 0; + return time(NULL); } @@ -108,3 +108,9 @@ void yaffsfs_OSInitialisation(void) } +void yaffs_bug_fn(const char *file_name, int line_no) +{ + printf("yaffs bug detected %s:%d\n", + file_name, line_no); + assert(0); +}