On Wed, Oct 28, 2009 at 04:02:12PM +0800, Alexey Starikovskiy wrote: > Shaohua Li пишет: > > On Tue, Oct 27, 2009 at 11:52:45PM +0800, Alexey Starikovskiy wrote: > > > >> Hi Shaohua, > >> > >> Could you also make it take a spec string as argument, not a prepared > >> byte buffer? > >> > > Hi, > > did you mean take the uuid string as an argument of the API? We can > > add a function to convert a uuid string to binary, but I didn't see > > any benefit to take the string as argument. > > > > Thanks, > > Shaohua > > > Hi, > Well, right now you are programming in machine codes. If you make > mistake, no one will notice, even yourself. > Programming languages were invented to make programs look more readable > by humans, so that they can see mistakes more easily. > For the same reason ACPI specification declares UUIDs as strings, while > having them in AML as byte arrays. > Function to convert UUID to byte array already exists, you just need to > use it... frankly even you use UUID string, it's easy to make mistakes. The string is too long. BTW, which function can convert UUID to byte array? Thanks, Shaohua -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html