From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F72FC07E9B for ; Wed, 21 Jul 2021 08:30:34 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7B1C260725 for ; Wed, 21 Jul 2021 08:30:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7B1C260725 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6BCFF82917; Wed, 21 Jul 2021 10:30:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1626856231; bh=4TrAxfNkL9lwFAUJqNXjc2toS3VOj2LaKJeQfgpbefo=; h=To:cc:From:Subject:In-reply-to:References:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=TqvQezZCsZZbm3ku3vx8tPcxygcO97byoUYCd/7bxfpajvtts2EQZIMwFHqGKu9Iy qj+miGE2qo3FdGdJSzO4+6zW9EJxhZYZ1COhEG2okLYlZUS382U5MmZgol46LgDj/r iJA4o2sVhblYQooipQIzHsB3y4poJKht2dbtZmTpPNq16LQ4ji7z8TxcEzEGsdVhN6 ikrirDkcYDEbO2wc7blOht0JwKTOvCXluKUhgG+LayypQw6pnr17bRgGTRiHwiq+Tj G+ouuIlruTeTlWkUJsp1Luu5fyuyikVb2F2aLa5Y+BjB7tr2SImllauETxlqOYpwZb JS0luyteVK0Hg== Received: from janitor.denx.de (unknown [62.91.23.180]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: noc@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 81B328203D for ; Wed, 21 Jul 2021 10:30:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1626856229; bh=4TrAxfNkL9lwFAUJqNXjc2toS3VOj2LaKJeQfgpbefo=; h=To:cc:From:Subject:In-reply-to:References:Date:From; b=VTiIS6a+doDC2e9vPWHvN9TcMzhVJmNLzbr0stWlk5eK4FtnE9FVLDaMpY+UDy9pq vL9xDUSL1sHG208d/vAxvLh8Cp+VA/yxknCRM9Uxfpx6LlJ4aLixa4c3stGXa3bTek 0EagOW+1qvv95CY7XfHNShdkW2C4Al9/9eDsBQ4YcpBhdfGS5neR64T45MBgOv73Ci 42fxvbWbttAPUQbbs28RKvJYylYqWn4/3ljwiAWynAl0KJwJUy8cvJcibAG3TsQQjZ 25IQ5RYdBBR4sd63TPyZIgHocAykqUeLK3vP9nN2TBJaDMAYw3FU//gR9GqiCtf4Vl pNUg/5Et2r+FQ== Received: by janitor.denx.de (Postfix, from userid 108) id E98FAA0057; Wed, 21 Jul 2021 10:30:28 +0200 (CEST) Received: from gemini.denx.de (gemini.denx.de [10.4.0.2]) by janitor.denx.de (Postfix) with ESMTPS id 40FE6A00A4; Wed, 21 Jul 2021 10:30:21 +0200 (CEST) Received: from gemini.denx.de (localhost [IPv6:::1]) by gemini.denx.de (Postfix) with ESMTP id 054451E14C3; Wed, 21 Jul 2021 10:30:21 +0200 (CEST) To: Sean Anderson cc: Simon Glass , U-Boot Mailing List , Eugeniu Rosca , Roland Gaudig , Heinrich Schuchardt , Stefan Herbrechtsmeier , =?UTF-8?Q?Marek_Beh=c3=ban?= , Tom Rini , Marek Vasut From: Wolfgang Denk Subject: Re: [PATCH 13/15] RFC: lib: Support a binary prefix 0y MIME-Version: 1.0 Content-type: text/plain; charset=UTF-8 Content-transfer-encoding: 8bit In-reply-to: <9e1797ea-c1bf-5749-03a6-cf0e9430f3c3@gmail.com> References: <20210720132940.1171011-1-sjg@chromium.org> <20210720132940.1171011-14-sjg@chromium.org> <9e1797ea-c1bf-5749-03a6-cf0e9430f3c3@gmail.com> Comments: In-reply-to Sean Anderson message dated "Wed, 21 Jul 2021 04:05:30 -0400." Date: Wed, 21 Jul 2021 10:30:20 +0200 Message-ID: <913902.1626856220@gemini.denx.de> X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Dear Sean, In message <9e1797ea-c1bf-5749-03a6-cf0e9430f3c3@gmail.com> you wrote: > On 7/20/21 9:29 AM, Simon Glass wrote: > > In some cases it is useful to be able to supply a binary value to a > > command. Use the '0y' prefix for this (binarY). > > To bikeshed: 0b please That doesn't work, as 0b010101 is in U-Boot in alost all contexts interpreted as 0x0b010101 (hex) = 184615169 (dec) Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de Microsoft Multitasking: several applications can crash at the same time.