testprogs: print monitor info levels in EnumMonitors() spoolss tests.
[ira/wip.git] / testprogs / win32 / spoolss / spoolss.c
index ac3a3138435bd554574cd32fe48d204b51d64235..5741e354ef16a8a412caef0c210cc9dce2dbd707 100644 (file)
@@ -312,6 +312,10 @@ static BOOL test_EnumPorts(struct torture_context *tctx,
                        }
                }
 
+               if (tctx->print) {
+                       print_port_info_bylevel(levels[i], buffer, returned);
+               }
+
                free(buffer);
                buffer = NULL;
        }
@@ -359,6 +363,10 @@ static BOOL test_EnumMonitors(struct torture_context *tctx,
                        }
                }
 
+               if (tctx->print) {
+                       print_monitor_info_bylevel(levels[i], buffer, returned);
+               }
+
                free(buffer);
                buffer = NULL;
        }