ia64/xen-unstable
annotate tools/examples/logging.sh @ 11100:905ff6e616cc
[HVM] Add stubs to Linux for the new hvm_op hypercall.
Signed-off-by: Steven Smith <ssmith@xensource.com>
Signed-off-by: Steven Smith <ssmith@xensource.com>
author | kfraser@localhost.localdomain |
---|---|
date | Mon Aug 14 11:33:50 2006 +0100 (2006-08-14) |
parents | 8e3865296e31 |
children |
rev | line source |
---|---|
emellor@9049 | 1 # |
emellor@9049 | 2 # Copyright (c) 2005 XenSource Ltd. |
emellor@9049 | 3 # |
emellor@9049 | 4 # This library is free software; you can redistribute it and/or |
emellor@9049 | 5 # modify it under the terms of version 2.1 of the GNU Lesser General Public |
emellor@9049 | 6 # License as published by the Free Software Foundation. |
emellor@9049 | 7 # |
emellor@9049 | 8 # This library is distributed in the hope that it will be useful, |
emellor@9049 | 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
emellor@9049 | 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
emellor@9049 | 11 # Lesser General Public License for more details. |
emellor@9049 | 12 # |
emellor@9049 | 13 # You should have received a copy of the GNU Lesser General Public |
emellor@9049 | 14 # License along with this library; if not, write to the Free Software |
emellor@9049 | 15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
emellor@9049 | 16 # |
emellor@9049 | 17 |
emellor@9049 | 18 log() { |
emellor@9049 | 19 local level="$1" |
emellor@9049 | 20 shift |
emellor@9049 | 21 logger -p "daemon.$level" -- "$0:" "$@" || echo "$0 $@" >&2 |
emellor@9049 | 22 } |