ia64/xen-unstable

view tools/check/check_logging @ 4591:6375127fdf23

bitkeeper revision 1.1311.1.1 (426641eeBv97w6sl983zxeR4Dc3Utg)

Cleanup page table handling. Add macros to access page table
entries, fixup plenty of places in the code to use the page
table types instead of "unsigned long".

Signed-off-by: Gerd Knorr <kraxel@bytesex.org>
Signed-off-by: michael.fetterman@cl.cam.ac.uk
author mafetter@fleming.research
date Wed Apr 20 11:50:06 2005 +0000 (2005-04-20)
parents 0a4b76b6b5a0
children 95cfc001ddd1 291e816acbf4 b2f4823b6ff0
line source
1 #!/usr/bin/env python
2 # -*- mode: python; -*-
4 import os
5 import sys
7 def hline():
8 print >>sys.stderr, "*" * 70
10 def msg(message):
11 print >>sys.stderr, "*" * 3, message
13 def check_logging():
14 """Check python logging is installed and raise an error if not.
15 Logging is standard from Python 2.3 on.
16 """
17 try:
18 import logging
19 except ImportError:
20 hline()
21 msg("Python logging is not installed.")
22 msg("Use 'make install-logging' at the xen root to install.")
23 msg("")
24 msg("Alternatively download and install from")
25 msg("http://www.red-dove.com/python_logging.html")
26 hline()
27 sys.exit(1)
29 if __name__ == '__main__':
30 check_logging()