Subversion Repositories HelenOS

Rev

Rev 2726 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2726 Rev 3888
1
/*++
1
/*++
2
 
2
 
3
Copyright (c) 1998  Intel Corporation
3
Copyright (c) 1998  Intel Corporation
4
 
4
 
5
Module Name:
5
Module Name:
6
 
6
 
7
    debug.c
7
    debug.c
8
 
8
 
9
Abstract:
9
Abstract:
10
 
10
 
11
    Debug library functions
11
    Debug library functions
12
 
12
 
13
 
13
 
14
 
14
 
15
Revision History
15
Revision History
16
 
16
 
17
--*/
17
--*/
18
 
18
 
19
#include "lib.h"
19
#include "lib.h"
20
 
20
 
21
 
21
 
22
 
22
 
23
//
23
//
24
// Declare runtime functions
24
// Declare runtime functions
25
//
25
//
26
 
26
 
27
//
27
//
28
//
28
//
29
//
29
//
30
 
30
 
31
INTN
31
INTN
32
DbgAssert (
32
DbgAssert (
33
    IN CHAR8    *FileName,
33
    IN CHAR8    *FileName,
34
    IN INTN     LineNo,
34
    IN INTN     LineNo,
35
    IN CHAR8    *Description
35
    IN CHAR8    *Description
36
    )
36
    )
37
{
37
{
38
    DbgPrint (D_ERROR, (CHAR8 *)"%EASSERT FAILED: %a(%d): %a%N\n", FileName, LineNo, Description);
38
    DbgPrint (D_ERROR, (CHAR8 *)"%EASSERT FAILED: %a(%d): %a%N\n", FileName, LineNo, Description);
39
 
39
 
40
    BREAKPOINT();
40
    BREAKPOINT();
41
    return 0;
41
    return 0;
42
}
42
}
43
 
43
 
44
 
44