X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=test%2Fgeekos_test_vm%2Fsrc%2Fcommon%2Ffmtout.c;h=ca7f6c0f7ec9830a2ede6778687ec3e051808452;hb=a569df65eac9f48c73e30f85afbb385f65c2eb38;hp=c097eb4d753d44482bc0527d6edec6b70f962292;hpb=a70930549d1b741704dd7af4e6bb0e89f6f8a519;p=palacios.git diff --git a/test/geekos_test_vm/src/common/fmtout.c b/test/geekos_test_vm/src/common/fmtout.c index c097eb4..ca7f6c0 100644 --- a/test/geekos_test_vm/src/common/fmtout.c +++ b/test/geekos_test_vm/src/common/fmtout.c @@ -78,7 +78,8 @@ enum ranks { #define PTRDIFF_T_RANK rank_long /* DHH */ -#define EMIT(x) do { (q)->Emit((q), (x)); } while (0) +#include +#define EMIT(x) do { if (q == NULL) {(q)->Emit((q), (x));} } while (0) /* * DHH - As a hack, we buffer this many digits when generating