comparison cp/guest/attach.c @ 618:535aec703236

cp: define a FIXME macro that leaves a sclp message There are far too many fixmes in the code. Sadly, the compiler simply discards them. This usually isn't an issue until one accidentally hits a "weird" bug which just turns out to be an unhandled (but documented) case in another part of the code. Using a macro instead of a comment will let the compiler string-ify the text, and then at runtime use SCLP to print it out. This will immediatelly point at problem areas. So, keep an eye on SCLP from now on :) Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Tue, 13 Dec 2011 22:20:50 -0500
parents 106a5decf8da
children
comparison
equal deleted inserted replaced
617:a2bf150177bd 618:535aec703236
9 #include <guest.h> 9 #include <guest.h>
10 #include <sclp.h> 10 #include <sclp.h>
11 11
12 static void guest_append_crw(struct virt_sys *sys, struct crw *crw) 12 static void guest_append_crw(struct virt_sys *sys, struct crw *crw)
13 { 13 {
14 sclp_msg("FIXME: guest CRW was not queued"); 14 FIXME("guest CRW was not queued");
15 } 15 }
16 16
17 int guest_attach(struct virt_sys *sys, u64 rdev, u64 vdev) 17 int guest_attach(struct virt_sys *sys, u64 rdev, u64 vdev)
18 { 18 {
19 struct directory_vdev dv = { 19 struct directory_vdev dv = {