X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FInterfaces%2FUDI%2Fudi_lib%2Fcore%2Fmeta_mgmt.c;h=7db637f891bfcd2f29a2f6be1738f8d1bab298b1;hb=a335dd47727c40467c1ff7fc256c9061c0398d05;hp=ab8f68a5e4d9c4eae1ceee8f0de2b08f7b061e88;hpb=26904c8992e45a3dbbafae273bef81e90d7d9692;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/Interfaces/UDI/udi_lib/core/meta_mgmt.c b/KernelLand/Modules/Interfaces/UDI/udi_lib/core/meta_mgmt.c index ab8f68a5..7db637f8 100644 --- a/KernelLand/Modules/Interfaces/UDI/udi_lib/core/meta_mgmt.c +++ b/KernelLand/Modules/Interfaces/UDI/udi_lib/core/meta_mgmt.c @@ -22,12 +22,12 @@ EXPORT(udi_final_cleanup_ack); tUDI_MetaLang cMetaLang_Management = { "udi_mgmt", - + NULL, 3, { - {sizeof(udi_enumerate_cb_t), NULL}, - {sizeof(udi_usage_cb_t), NULL}, - {sizeof(udi_channel_event_cb_t), NULL}, + {sizeof(udi_enumerate_cb_t), 0, NULL}, + {sizeof(udi_usage_cb_t), 0, NULL}, + {sizeof(udi_channel_event_cb_t), 0, NULL}, } }; @@ -91,13 +91,16 @@ void udi_enumerate_ack(udi_enumerate_cb_t *cb, udi_ubit8_t enumeration_result, u switch(at->attr_type) { case UDI_ATTR_STRING: - LOG("[%i] String '%.*s'", i, at->attr_length, at->attr_value); + LOG("[%i] %s String '%.*s'", i, at->attr_name, + at->attr_length, at->attr_value); break; case UDI_ATTR_UBIT32: - LOG("[%i] UBit32 0x%08x", i, UDI_ATTR32_GET(at->attr_value)); + LOG("[%i] %s UBit32 0x%08x", i, at->attr_name, + UDI_ATTR32_GET(at->attr_value)); break; default: - LOG("[%i] %i", i, at->attr_type); + LOG("[%i] %s %i", i, at->attr_name, + at->attr_type); break; } }