Message ID | 20241021063255.79162-1-mseben@gmail.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <swupdate+bncBCV5VEV35IKRBBHY264AMGQEC65YC3Y@googlegroups.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20230601 header.b=PHCpr9lR; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=gILlLqiF; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::f3c; helo=mail-qv1-xf3c.google.com; envelope-from=swupdate+bncbcv5vev35ikrbbhy264amgqec65yc3y@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-qv1-xf3c.google.com (mail-qv1-xf3c.google.com [IPv6:2607:f8b0:4864:20::f3c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XX5mV4z7Rz1xvp for <incoming@patchwork.ozlabs.org>; Mon, 21 Oct 2024 18:00:25 +1100 (AEDT) Received: by mail-qv1-xf3c.google.com with SMTP id 6a1803df08f44-6cbf054c552sf66374606d6.1 for <incoming@patchwork.ozlabs.org>; Mon, 21 Oct 2024 00:00:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1729494021; cv=pass; d=google.com; s=arc-20240605; b=H9hLNWlufp+JT8HgRxrOCSbPw1VhjI8qayJsth0+Jj3/9GWerE6UsJk74QUpNFUqwc ik92MrWLhokEIOg9hnvKYnN392FQHcco4CdkCJXqxExgXjAZ7G5MfVjZoRtFVUBW3zeP EkS7SeOoche75QVKywfB8/5bqKU1qnXtkZskJeV4ljbZ9uxctKKRvHiyfqNC7BDiHUAN 3MrV9xKct5HqA+Z4actvb30KvImZ7Dn66M2H97ZQNsNH6wvuKsz67BlqdPrNvkjZFhsv 6oMXYsEdlz67zRDWyPMQb1AeCl0Iip+4QtvS+QJTZUflJlWFn5aOOZXBDOjKKEA1yq3O c1nQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature:dkim-signature; bh=3po5fghS3MGKul9VFOg6e2LZXbHUMfD4nIyT83ebx8g=; fh=BKOueCMOD31D0ZT0W2HDBfldjsbefbonkxcZvQoOqrM=; b=fc32GKo/le6Wo+lzdKvHZa2G9eAMwtPM4fCWLr50JIJEIlCtyiYgjgsxSN8RNb8SiO WPWQjtaUD3aqksgOFaikXVpb7kZbprTz8q3GEIW9cV18IkdCyGVqoLuzzyPhtmchTrgr ZQrWDQeQGl0DVsAS2r3JSpU5A94Wi1aOH1fJ0Ot2jLKdWoyG0cny46Z/3mmwUpIRrqrs 5yG4eZwHPAK67U42c1y48yUUxIWOYj8qRRxRdKJIlc/wnHQtBqLjuA1QJSc4GYT2bJD5 Ikg4jtR1ctPeo5k6SC56Ia0hfZ7GGy9hZklAFa7IaovzvRxgADxiKrr9XlIQ5hVSjCmR AuXw==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IcEAfjV2; spf=pass (google.com: domain of mseben@gmail.com designates 2a00:1450:4864:20::330 as permitted sender) smtp.mailfrom=mseben@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1729494021; x=1730098821; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :sender:from:to:cc:subject:date:message-id:reply-to; bh=3po5fghS3MGKul9VFOg6e2LZXbHUMfD4nIyT83ebx8g=; b=PHCpr9lRd/kKIyi+jZRkMdIOAdJMsl9NSHJ0AnemY3nYGA6Hj0tAgKcLvbktV3qPdN mEceZrvbiIgpukplozNDAEWX6VK/GMI4PWJd/fD5t9mi3uVlCe+Zexp2X66clKSTU7O9 5BdqGxGNhjMao2SdEKc+TiSnv4lons5I4r4azMoLdo6rVabD/ACrVglTqk+DGzRw5pnY qdyfnLScP4Mq6HB6kSUALWrJTyiBxSUA4VwP0m2Rx8ZAEM4xyzV3RWHWL6osnQbETVD3 o9XBpTHJvxeqHNkpMOjn1jLPdK3qE9JTcFG9R60xIcpo9b87/2+aE7MBGnC520FKH7gZ aeqg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729494021; x=1730098821; darn=patchwork.ozlabs.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=3po5fghS3MGKul9VFOg6e2LZXbHUMfD4nIyT83ebx8g=; b=gILlLqiFS3XSq9iNw6lN77dUheIqn/g6wmkl0YOyQRoZ2E4naFfsZxUpkajWOp0i6K d7PcMF9thtWlasBtk15sVTERrvDdgVOgOUX0RKhJvbztCrsmchZhFDh9BzJ6GfEwUgIA aqAlt6rwFh6ozS9JGEUkyte0JLmU7Zl6h5RSmsVwU+YD2FZHXJUCGSyDO8nkHlGHfHlD KnPbSOTY6yjl9Xsl1kq+Y6LJBQRtge1RlKoQw348EF/IjCu/XYM/VA8OyE7jgzpN2z8I gB+B8NsCY1+X0802+MD0woWgf9R/ljlqHeZIOqxEgd40txc+GPqT84OzVQTu1JbTB19s Wf1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729494021; x=1730098821; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=3po5fghS3MGKul9VFOg6e2LZXbHUMfD4nIyT83ebx8g=; b=GOgrXTfUsZP08/U8sotZ85cs+EeRiCsnAvBEoY2lNqTR/erEzX0DjgXUkIsVnp6p+f BI3nn1jIUVzM9oVfeLdu7e8lqezqERQj4fawp8KS1HHKMSUQZ9gMjRLAl/RRnwfCBqsy 6Pj0cm0wUn2iKiMnNy2VKfPr8Mifh3EYA5Q36LU2mXl7SxjpiF0jZYp0jIyddvJf0l57 EfTEq8xAlk0DunDJ8Z1c24UE90mQRJIxs4C2knrzkdzCrvwHiDh/z8knRx1JMQGUAt3x hmcFiHXX/LwpF3GAGDRXtuNlTN4KqlSNl1RgLh5wmvnaqLOVvm/zR80Gio9lgFDoRZwG 1kgQ== Sender: swupdate@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCXPAqrgF+HyYbIMytA3szdRNyQKLVMMywwCNHDW5g8NV+UNumXoyjFF/mW+yI+wG4SkH4UY8FJDng==@patchwork.ozlabs.org X-Gm-Message-State: AOJu0YwOrE4Tsxd0A8ILDGQY5pnitZWyvx7vkXtkuZ2nM62Psbbkn6iY KSF4CiuLF6dlbFwcATSscg48CN1m0SPZEtOtkrwRoJTX+EdmBs9l X-Google-Smtp-Source: AGHT+IFu0MSg9cBgT5HMJD03XpK41vlt1IrksYZ7slnZ+qMOaVHT3GpdOmGlPEE+xwfjgrSpDsQGQw== X-Received: by 2002:a05:6214:3f93:b0:6cb:f9cd:b400 with SMTP id 6a1803df08f44-6cde14c2baemr188563976d6.9.1729494021127; Mon, 21 Oct 2024 00:00:21 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a05:6214:dc3:b0:6cb:d466:e169 with SMTP id 6a1803df08f44-6cc3758759als4513566d6.2.-pod-prod-08-us; Mon, 21 Oct 2024 00:00:20 -0700 (PDT) X-Received: by 2002:a05:620a:28d5:b0:7b1:453c:56b3 with SMTP id af79cd13be357-7b157b7c962mr1314630085a.38.1729494020104; Mon, 21 Oct 2024 00:00:20 -0700 (PDT) Received: by 2002:a05:620a:667:b0:7a1:c409:aa2c with SMTP id af79cd13be357-7b155f91a68ms85a; Sun, 20 Oct 2024 23:33:03 -0700 (PDT) X-Received: by 2002:a5d:6b8f:0:b0:37c:d4ba:1127 with SMTP id ffacd0b85a97d-37ea2177e58mr6099694f8f.16.1729492381345; Sun, 20 Oct 2024 23:33:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1729492381; cv=none; d=google.com; s=arc-20240605; b=Dt4Neu9Dvj/TgYOp5n49IMfcNyjzaCLbKPQy3ACwc4hhrC5XnolFmt+wqH7vwIhZ5L F24EPpcADlOXHx0BIkXAa9niW7A8tc8feXmeMJt2O5oyrinX8pp6wbbOLosmRAsJfCP2 Nysle6WRR+VQPlgYmIvgB0feE1LLE2R3a+0YVkdYsMtdtCur2eJhCRYBadD+yazGri2X WDOHXrLHmJwgYuB+zKnwZcOlldTJq/c60grKisMiZssKSRu4yZ8t75u3ckcrzq1AAHEU k/1GK7EuvRKWGrp8H5QC2pcpa9NgOG47+9Gp4PpKIcrGFnhMIZkDfPNULYMLAiFF1SGn xN1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=j4B0jXSsFO1l0G9JAjUyudAdB3XTNECcYFqJNq4du4s=; fh=L4Qr1cay/PMx4RdPVbrXC0rrJyZoTLX+LJaqBZrpghg=; b=OShXOjRo4Rpil7MrF8sEzKGwVY2AlGI/wL3rwwwj0U/kCbpFNv/RsFndO4uvzhr3sb gynnx6XFBmuzSe+K5mS0X5tFSL9ct0zqkf7PST2sICqd7zCieg3ZQxcS7IJYmFzBwmOW iPM/R/rlXtjHccm0hNMAXwHRo4ccPAhE+pv64bkCayBTtDXGvJMYzFBfJ6UrNOYLSG3v zxHy0vA6vRwnfNpNhsBg4Bt8VDzfxtS2CFFQviPZ/GvK9BpORd2WgUaIve5Hf02RAJc2 bZ/tOSY7TUxMYQsbU0kCTQN2v1igYdtgs1OzBcmqknUUWKgMCDdzwu/NX7R3qerHvTuP 4X0g==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IcEAfjV2; spf=pass (google.com: domain of mseben@gmail.com designates 2a00:1450:4864:20::330 as permitted sender) smtp.mailfrom=mseben@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com. [2a00:1450:4864:20::330]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-431605f67d5si3350055e9.0.2024.10.20.23.33.01 for <swupdate@googlegroups.com> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Oct 2024 23:33:01 -0700 (PDT) Received-SPF: pass (google.com: domain of mseben@gmail.com designates 2a00:1450:4864:20::330 as permitted sender) client-ip=2a00:1450:4864:20::330; Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-43152b79d25so39088435e9.1 for <swupdate@googlegroups.com>; Sun, 20 Oct 2024 23:33:01 -0700 (PDT) X-Received: by 2002:a05:600c:35d3:b0:431:5f9e:3f76 with SMTP id 5b1f17b1804b1-43161669464mr90150115e9.16.1729492380729; Sun, 20 Oct 2024 23:33:00 -0700 (PDT) Received: from EVS00241NB.. (178-143-44-218.static.orange.sk. [178.143.44.218]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43160682759sm109628235e9.1.2024.10.20.23.32.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Oct 2024 23:33:00 -0700 (PDT) From: michal seben <mseben@gmail.com> To: swupdate@googlegroups.com Cc: michal seben <mseben@gmail.com> Subject: [swupdate] [PATCH] emmc handler: fix partition number indexing in boot device string Date: Mon, 21 Oct 2024 08:32:55 +0200 Message-Id: <20241021063255.79162-1-mseben@gmail.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-Original-Sender: mseben@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=IcEAfjV2; spf=pass (google.com: domain of mseben@gmail.com designates 2a00:1450:4864:20::330 as permitted sender) smtp.mailfrom=mseben@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=pass header.i=@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: <swupdate.googlegroups.com> X-Google-Group-Id: 605343134186 List-Post: <https://groups.google.com/group/swupdate/post>, <mailto:swupdate@googlegroups.com> List-Help: <https://groups.google.com/support/>, <mailto:swupdate+help@googlegroups.com> List-Archive: <https://groups.google.com/group/swupdate List-Subscribe: <https://groups.google.com/group/swupdate/subscribe>, <mailto:swupdate+subscribe@googlegroups.com> List-Unsubscribe: <mailto:googlegroups-manage+605343134186+unsubscribe@googlegroups.com>, <https://groups.google.com/group/swupdate/subscribe> |
Series |
emmc handler: fix partition number indexing in boot device string
|
expand
|
On 21.10.24 08:32, michal seben wrote: > Signed-off-by: michal seben <mseben@gmail.com> > --- > handlers/emmc_csd_handler.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/handlers/emmc_csd_handler.c b/handlers/emmc_csd_handler.c > index f6e8e2cf..15715a8e 100644 > --- a/handlers/emmc_csd_handler.c > +++ b/handlers/emmc_csd_handler.c > @@ -62,7 +62,7 @@ static int emmc_csd_set(struct img_type *img, void *data, bool toggle) > ERROR("The value for boot device is not set"); > return -EINVAL; > } > - active = strtoul(&boot[5], NULL, 10); > + active = strtoul(&boot[4], NULL, 10); > if (errno || (active != 0 && active != 1)) { > ERROR("Wrong boot device set: %s", img->device); > Yes, of course, thanks ! I apply it. Best regards, Stefano Babic
diff --git a/handlers/emmc_csd_handler.c b/handlers/emmc_csd_handler.c index f6e8e2cf..15715a8e 100644 --- a/handlers/emmc_csd_handler.c +++ b/handlers/emmc_csd_handler.c @@ -62,7 +62,7 @@ static int emmc_csd_set(struct img_type *img, void *data, bool toggle) ERROR("The value for boot device is not set"); return -EINVAL; } - active = strtoul(&boot[5], NULL, 10); + active = strtoul(&boot[4], NULL, 10); if (errno || (active != 0 && active != 1)) { ERROR("Wrong boot device set: %s", img->device);
Signed-off-by: michal seben <mseben@gmail.com> --- handlers/emmc_csd_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)