From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexey Starikovskiy Subject: Re: [PATCH 1/3] Add a generic API for _OSC Date: Wed, 28 Oct 2009 13:54:28 +0300 Message-ID: <4AE822E4.3060802@gmail.com> References: <20091027063637.GA22237@sli10-desk.sh.intel.com> <4AE7174D.8090007@gmail.com> <20091028021930.GA31320@sli10-desk.sh.intel.com> <4AE7FA84.1020203@gmail.com> <20091028084750.GA9914@sli10-desk.sh.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from mail-bw0-f227.google.com ([209.85.218.227]:60135 "EHLO mail-bw0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752198AbZJ1KyZ (ORCPT ); Wed, 28 Oct 2009 06:54:25 -0400 Received: by bwz27 with SMTP id 27so818967bwz.21 for ; Wed, 28 Oct 2009 03:54:29 -0700 (PDT) In-Reply-To: <20091028084750.GA9914@sli10-desk.sh.intel.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Shaohua Li Cc: "linux-acpi@vger.kernel.org" , "lenb@kernel.org" Shaohua Li =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > On Wed, Oct 28, 2009 at 04:02:12PM +0800, Alexey Starikovskiy wrote: > =20 >> Shaohua Li =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> =20 >>> On Tue, Oct 27, 2009 at 11:52:45PM +0800, Alexey Starikovskiy wrote= : >>> =20 >>> =20 >>>> Hi Shaohua, >>>> >>>> Could you also make it take a spec string as argument, not a prepa= red >>>> byte buffer? >>>> =20 >>>> =20 >>> 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 >>> =20 >>> =20 >> 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 reada= ble >> by humans, so that they can see mistakes more easily. >> For the same reason ACPI specification declares UUIDs as strings, wh= ile >> having them in AML as byte arrays. >> Function to convert UUID to byte array already exists, you just need= to >> use it... >> =20 > frankly even you use UUID string, it's easy to make mistakes. The str= ing > is too long. Copy-paste is already invented too :) > BTW, which function can convert UUID to byte array? > =20 aslopcodes.c:633 OpcDoUuId(). Regards, Alex. -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html