diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2006-10-24 19:45:07 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2006-10-24 19:45:07 +0000 |
commit | a802b5afa7905711d830920521385789256999b2 (patch) | |
tree | 84bfb750b8abe37460c213f57d855fa12efc6d2a /sys | |
parent | 4c9079809afe8b1e1e669f3d019fb58d36359103 (diff) |
Work around PR 5268 by printing "bad string" instead of panicing. There is
no meanigful way of calling aml_die so we need to isolate these machines
instead.
ok jordan
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/acpi/amltypes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/amltypes.h b/sys/dev/acpi/amltypes.h index 3ea16b773f0..6f36a2844f1 100644 --- a/sys/dev/acpi/amltypes.h +++ b/sys/dev/acpi/amltypes.h @@ -1,4 +1,4 @@ -/* $OpenBSD: amltypes.h,v 1.18 2006/10/19 07:02:20 jordan Exp $ */ +/* $OpenBSD: amltypes.h,v 1.19 2006/10/24 19:45:06 marco Exp $ */ /* * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> * @@ -299,7 +299,7 @@ struct aml_value #define xaml_intval(v) ((v)->v_integer) #define aml_strlen(v) ((v)->length) -#define aml_strval(v) ((v)->v_string) +#define aml_strval(v) ((v)->v_string ? (v)->v_string : "bad string") #define aml_buflen(v) ((v)->length) #define aml_bufval(v) ((v)->v_buffer) #define aml_pkglen(v) ((v)->length) |