mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
testprogs: print datatypes info levels in EnumPrintProcessorDatatypes() spoolss tests.
Guenther
This commit is contained in:
parent
dcad5447cf
commit
bf7156b6dd
@ -668,6 +668,44 @@ void print_printprocessor_info_bylevel(DWORD level, LPBYTE buffer, DWORD count)
|
||||
}
|
||||
}
|
||||
|
||||
void print_datatypes_info_1(PDATATYPES_INFO_1 info)
|
||||
{
|
||||
printf("\tDataTypes Name\t= %s\n", info->pName);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
void print_datatypes_info_bylevel(DWORD level, LPBYTE buffer, DWORD count)
|
||||
{
|
||||
DWORD i;
|
||||
PDATATYPES_INFO_1 buffer1 = NULL;
|
||||
|
||||
if (!buffer) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (level) {
|
||||
case 1:
|
||||
buffer1 = (PDATATYPES_INFO_1)buffer;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
printf("DataTypes Info Level %d:\n", level);
|
||||
|
||||
switch (level) {
|
||||
case 1:
|
||||
for (i=0; i<count; i++) {
|
||||
print_datatypes_info_1(&buffer1[i]);
|
||||
printf("\n");
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void print_driver_info_1(PDRIVER_INFO_1 info)
|
||||
{
|
||||
printf("\tDriver Name\t= %s\n\n", info->pName);
|
||||
|
@ -466,6 +466,10 @@ static BOOL test_EnumPrintProcessorDatatypes(struct torture_context *tctx,
|
||||
}
|
||||
}
|
||||
|
||||
if (tctx->print) {
|
||||
print_datatypes_info_bylevel(levels[i], buffer, returned);
|
||||
}
|
||||
|
||||
free(buffer);
|
||||
buffer = NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user