xen: fix two errors when debug is enabled