comparison src/device.c @ 14:9ee227acff29 r19-15b90

Import from CVS: tag r19-15b90
author cvs
date Mon, 13 Aug 2007 08:48:42 +0200
parents 376386a54a3c
children 859a2309aef8
comparison
equal deleted inserted replaced
13:13c6d0aaafe5 14:9ee227acff29
109 struct device *d = XDEVICE (obj); 109 struct device *d = XDEVICE (obj);
110 char buf[256]; 110 char buf[256];
111 111
112 if (print_readably) 112 if (print_readably)
113 error ("printing unreadable object #<device %s 0x%x>", 113 error ("printing unreadable object #<device %s 0x%x>",
114 string_data (XSTRING (d->name)), d->header.uid); 114 XSTRING_DATA (d->name), d->header.uid);
115 115
116 sprintf (buf, "#<%s-device", !DEVICE_LIVE_P (d) ? "dead" : 116 sprintf (buf, "#<%s-device", !DEVICE_LIVE_P (d) ? "dead" :
117 DEVICE_TYPE_NAME (d)); 117 DEVICE_TYPE_NAME (d));
118 write_c_string (buf, printcharfun); 118 write_c_string (buf, printcharfun);
119 if (DEVICE_LIVE_P (d)) 119 if (DEVICE_LIVE_P (d))