Changeset 5042 in vbox for trunk/src/VBox/Additions/linux/module
- Timestamp:
- Sep 26, 2007 9:52:01 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 24845
- Location:
- trunk/src/VBox/Additions/linux/module
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/module/Makefile.module
r5002 r5042 35 35 umoddi3.o \ 36 36 qdivrem.o \ 37 assert.o \ 37 38 logbackdoor.o \ 38 39 logformat.o \ … … 109 110 KFLAGS := -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -D_X86_ \ 110 111 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DVBGL_VBOXGUEST -DVBOX_HGCM \ 111 -DLOG_TO_BACKDOOR -DRT_WITH_VBOX -DIN_MODULE 112 -DLOG_TO_BACKDOOR -DRT_WITH_VBOX -DIN_MODULE -DIN_GUEST_R0 112 113 ifeq ($(BUILD_TYPE),debug) 113 114 KFLAGS += -DDEBUG -
trunk/src/VBox/Additions/linux/module/files_vboxadd
r4997 r5042 63 63 ${PATH_ROOT}/src/VBox/Runtime/VBox/strformat-vbox.cpp=>strformat-vbox.c \ 64 64 ${PATH_ROOT}/src/VBox/Runtime/RTErrConvertToErrno.cpp=>RTErrConvertToErrno.c \ 65 ${PATH_ROOT}/src/VBox/Runtime/assert.cpp=>assert.c \ 65 66 ${PATH_ROOT}/src/VBox/Runtime/logformat.cpp=>logformat.c \ 66 67 ${PATH_ROOT}/src/VBox/Runtime/strformat.cpp=>strformat.c \ -
trunk/src/VBox/Additions/linux/module/vboxmod.c
r4998 r5042 34 34 #endif 35 35 36 /* Runtime assert implementation for Linux ring 0 */ 37 RTDECL(void) AssertMsg1(const char *pszExpr, unsigned uLine, 38 const char *pszFile, const char *pszFunction) 39 { 40 Log(("!!Assertion Failed!!\n" 41 "Expression: %s\n" 42 "Location : %s(%d) %s\n", 43 pszExpr, pszFile, uLine, pszFunction)); 44 } 45 EXPORT_SYMBOL(AssertMsg1); 46 47 /* Runtime assert implementation for Linux ring 0 */ 48 RTDECL(void) AssertMsg2(const char *pszFormat, ...) 49 { 50 va_list ap; 51 char msg[256]; 52 53 va_start(ap, pszFormat); 54 vsnprintf(msg, sizeof(msg) - 1, pszFormat, ap); 55 msg[sizeof(msg) - 1] = '\0'; 56 Log(("%s", msg)); 57 va_end(ap); 58 } 59 EXPORT_SYMBOL(AssertMsg2); 60 36 /* This is called by our assert macros to find out whether we want 37 to insert a breakpoint after the assertion. In kernel modules we 38 do not of course. */ 61 39 RTDECL(bool) RTAssertDoBreakpoint(void) 62 40 {
Note:
See TracChangeset
for help on using the changeset viewer.