SCP: Fix SHOW DEBUG device debug flags output for devices which may have debug settings which set multiple flags.

This commit is contained in:
Mark Pizzolato 2014-04-02 04:49:33 -07:00
parent e79e41d9e4
commit e63fbdce49

2
scp.c
View file

@ -3891,7 +3891,7 @@ if (dptr->flags & DEV_DEBUG) {
else {
fputs ("Debug=", st);
for (dep = dptr->debflags; dep->name != NULL; dep++) {
if (dptr->dctrl & dep->mask) {
if ((dptr->dctrl & dep->mask) == dep->mask) {
if (any)
fputc (';', st);
fputs (dep->name, st);