From patchwork Fri Jul 5 08:43:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Anavi X-Patchwork-Id: 1957190 Return-Path: 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=mi4SpdvX; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2607:f8b0:4864:20::f3d; helo=mail-qv1-xf3d.google.com; envelope-from=swupdate+bncbcr7zl53zicbbkhit22amgqeds5nrri@googlegroups.com; receiver=patchwork.ozlabs.org) Received: from mail-qv1-xf3d.google.com (mail-qv1-xf3d.google.com [IPv6:2607:f8b0:4864:20::f3d]) (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 4WFnM34jgVz1xqb for ; Fri, 5 Jul 2024 18:51:58 +1000 (AEST) Received: by mail-qv1-xf3d.google.com with SMTP id 6a1803df08f44-6b22e2dfa6csf21032496d6.1 for ; Fri, 05 Jul 2024 01:51:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1720169513; cv=pass; d=google.com; s=arc-20160816; b=hTBAPv1q4tJ5ir3p+GgVyWSnF/AnL+zNChb9xHzua1D3xY9ZnDflNI774lw6OVMpS1 CHMkC4huARkecHhr8yMFgpm28UUTtu3ZG6wsppVlNSSkg40Kp/zRsNRBjrI9fXF6zWZ4 2hN5syKML0S9057w/W2wQBmNYS3wS64m/7sTK4mKq8SuuJlkw2vaUVDmie5t2J9ybaco lKopv82Sbs2l0MamDVMnufoIrNQLaIcZGpSF262v5hs4sGcHo63NfdyuozBpjuTYCOqh BIIrBxgZMGRyEq/Gfx1M8m2o+3ePFmCX+dll1yV5FuPnFWo1iFz0GYYpcRDB8nrNhomE p4bg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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; bh=ZxgyMn9qC1p1k/d6M7peVP2+5zrkOwS8WAsVcTeJxok=; fh=YkmnDugKwUsqsk5EFFYe2m8dnzwkGjOxGKuaZON984U=; b=1K+WGFzAQMke7ukPycQXFYqK/XehJG8E9LMSOhi6ED3CKiNCdFiYFuD6/vdar2zPDr l75Vs2evBaX6XJJlEtLsQaC1wlLEyig09S1p7Yzx1xF5/zZZTzBELXluty+MqnkgY5Ou B2XIls8a+Vaw4ZbbJ2LY1Rx55beuQIGgtEedm3Ttzh5dc7W2Ju1KmMvONDZk/T+FwiwF DNgcIKAQT3fDJ6pPNaWYIXJTqzpn5xGU+jZSi+5yvimECyGaLAxuE8+dF8vi5GqLWptD v7mBUmOJShUjp6qGfGeL9g/EYyohmGAWNYZhljqYSFElkxnF+jIfG5IlYJHKWclk5t8u w7Qw==; darn=patchwork.ozlabs.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@konsulko.com header.s=google header.b=Jc4scab1; spf=pass (google.com: domain of leon.anavi@konsulko.com designates 2a00:1450:4864:20::62b as permitted sender) smtp.mailfrom=leon.anavi@konsulko.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=konsulko.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1720169513; x=1720774313; 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=ZxgyMn9qC1p1k/d6M7peVP2+5zrkOwS8WAsVcTeJxok=; b=mi4SpdvXFWdlVKkTfPMTlgTvhCAJpITUfgRIKW7JoASLjQuC3ZqcgW+5wiH+yC6HL2 Kl8a7cUAhLNEDFSF0+a1UYrDKQAxKoFJXhzODcElKh+23YOdUg8luN+Ty8FY4b3mqW5u 7kWc8JhwThBvYOT6fJhumJIGspVNtzgiXsQIXtEdOmrDBj0ITC3j6w4Rew50cIVKRsPn UtbxgWq7CrNeVmBMM3CTLFpuf4SGdM8ErCE2Eea7WuywW2csMDniCxC+iqsy/Y6FHjMI ppHGnNgHIe8Q0i+ydS2i/IeqcdKg4fxTD6LyPfWe4Utcy9ohmUVipflm2s1K4Nz9bweU b3tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720169513; x=1720774313; 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=ZxgyMn9qC1p1k/d6M7peVP2+5zrkOwS8WAsVcTeJxok=; b=w/Zvy9DYB/pJdJpYr/cEPVLd0wK1jPXOT1AcrkRmSpB/ifQQs3NSEbLGpDOM0bqQwz tL2EocFoHsBRFffXg31ICQRLAyTnerWuOLGkO9eopWmIFjeufFi0Y7GyQENkWMv27Jhg xoDPYucZ7Gn5Sr87FSia/H+i5qaP3dErVFouB9XljkAFuNzVe0yff2xQd1mDXFPTsJug MSN0UynIgivPl12fG7e4Kg465GoXe+W5zdendHUNRl+d2KEAH0l+t0lQlbnzIjfo+EuI 2ZQYw8pRHItTJyVdlfhQ0te2PJHn24/051gk7Ke2RUEPEhoYuRTL/YuY6yjBX5i3vybk +D0g== Sender: swupdate@googlegroups.com X-Forwarded-Encrypted: i=2; AJvYcCWJ2RWc/KT9X7f1+LpGNjrpesTzJshwsuNVjBNxV8Buyz4wqvTscJAFmRTdly4mvqfuB7BjisjJASnF2IxNoYCS8tMxCywEP3DvQvI5WA== X-Gm-Message-State: AOJu0YzZwYgY15gAmAS9+qjozQV1cuxFxY+F9KR1xQa8+smYuIr5qYot i4yYZzx9LWaQo/8P+bVjN3fALtRg8ioFpMqeSN3u2aTyvznYWFCO X-Google-Smtp-Source: AGHT+IGsi7XS9Gl7XfxkMf9qlXtpmDnrD9nOGKtwivuTDt1vR8Ql/B7AtsBwBRS3ikkAxn/CXMjZdw== X-Received: by 2002:a05:6214:2408:b0:6b0:7f0c:d30e with SMTP id 6a1803df08f44-6b5ecf66b28mr52652276d6.10.1720169513326; Fri, 05 Jul 2024 01:51:53 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:ad4:5ba9:0:b0:6b5:e006:11bb with SMTP id 6a1803df08f44-6b5e9fa056dls24229856d6.0.-pod-prod-06-us; Fri, 05 Jul 2024 01:51:52 -0700 (PDT) X-Received: by 2002:a05:6214:e84:b0:6b5:43d8:c53f with SMTP id 6a1803df08f44-6b5ece93a91mr4391546d6.0.1720169512352; Fri, 05 Jul 2024 01:51:52 -0700 (PDT) Received: by 2002:a05:620a:2981:b0:79d:5863:c65b with SMTP id af79cd13be357-79ee114e9fcms85a; Fri, 5 Jul 2024 01:43:33 -0700 (PDT) X-Received: by 2002:a2e:3204:0:b0:2ee:8452:2926 with SMTP id 38308e7fff4ca-2ee8f2bdc89mr11666341fa.14.1720169011507; Fri, 05 Jul 2024 01:43:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720169011; cv=none; d=google.com; s=arc-20160816; b=pBTxseona3SUmmb09o2NFXzMl3Gt2KX6W0kwVLEZbD5vHSdV1ecXK9TFD0wK/kY3I+ OJZNq9GtmRZAr9C0F9bOIEpM68hKFknnOttEi+0YxzoNQ/YR4Sy1f+5ppRV7tWzsjADV YIGj2thAGIrkVNdx47nPu4GRZDSg4/neQygBkV40EIwk6OXjeZ3gR9uwYP3oaDCa/rWi tm1cLiNhtfz9QfWZzOiZakMHh0mXk3PvS31KAtVb3emJrAzB6IbMu1D+jc0FoAzgyWGP slrPJnPIBomf80uAD4xy62USEWZ48p69NHp9Yhc0wMJI8Saa/Y7N6MERFjY+ymxIYeEP feoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=1MQ6F2Zl4m4dr7u+VlgwOO2FRGnRlCP4NQ+QEK0K34M=; fh=KsoyG2WH6QACIjnMWiuLaibNL0poyC1pIww8361jp2c=; b=vv+YgCwmPNOWqY/LOs8v+us6e1jz3CWk/BO7Q1PtLhQm3XaDFQfpoJlx0gI6iWdT9k FQR0XzvSTOKllOQmQhO2fgHWcmMGj6ZfQm0LK0SkNTlvmAxDOiFIL9qMtvLambtyFhPB Bo8ZrhxTEu/vdhfNT+FGTW20MdQvMn8ct6/eNKQ2beYsaivoct7N1zlHN2YltszWFnpA Y24ObH+f3vHjowZy14ERc/B2UXE6U162/jwbZcxt/tpW9qi4M9AbEFOg2IjNIOHVFPh8 MEPYwZb8UfXgWlNgLlDZqEHijSUhq3gYqGm6GySp33vLPjIKqVY6sly8yEg3c7Qfrm3o zksA==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@konsulko.com header.s=google header.b=Jc4scab1; spf=pass (google.com: domain of leon.anavi@konsulko.com designates 2a00:1450:4864:20::62b as permitted sender) smtp.mailfrom=leon.anavi@konsulko.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=konsulko.com Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com. [2a00:1450:4864:20::62b]) by gmr-mx.google.com with ESMTPS id 38308e7fff4ca-2ee97e58f1csi43341fa.1.2024.07.05.01.43.31 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Jul 2024 01:43:31 -0700 (PDT) Received-SPF: pass (google.com: domain of leon.anavi@konsulko.com designates 2a00:1450:4864:20::62b as permitted sender) client-ip=2a00:1450:4864:20::62b; Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a77bf336171so194042266b.1 for ; Fri, 05 Jul 2024 01:43:31 -0700 (PDT) X-Received: by 2002:a17:906:a40b:b0:a77:ca3b:996c with SMTP id a640c23a62f3a-a77ca3bac0emr115982866b.16.1720169010239; Fri, 05 Jul 2024 01:43:30 -0700 (PDT) Received: from tone.k.g (lan.nucleusys.com. [92.247.61.126]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a72ab08d0dcsm658344566b.166.2024.07.05.01.43.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jul 2024 01:43:29 -0700 (PDT) From: Leon Anavi To: swupdate@googlegroups.com Cc: Leon Anavi Subject: [swupdate] [libubootenv][PATCH] src/uboot_env.c: Increase line length Date: Fri, 5 Jul 2024 11:43:27 +0300 Message-Id: <20240705084327.2333283-1-leon.anavi@konsulko.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Original-Sender: leon.anavi@konsulko.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@konsulko.com header.s=google header.b=Jc4scab1; spf=pass (google.com: domain of leon.anavi@konsulko.com designates 2a00:1450:4864:20::62b as permitted sender) smtp.mailfrom=leon.anavi@konsulko.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=konsulko.com Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Increase LINE_LENGTH from 1024 to 2048 because nowadays for some boards U-Boot CONFIG_SYS_CBSIZE (and CONFIG_SYS_PBSIZE respectively) is greater than 1024. This leads to truncating longer lines which can be fatal in specific cases, for example with a long bootcmd. Signed-off-by: Leon Anavi Acked-by: Stefano Babic --- src/uboot_env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uboot_env.c b/src/uboot_env.c index 5c0865c..50ba87d 100644 --- a/src/uboot_env.c +++ b/src/uboot_env.c @@ -1409,7 +1409,7 @@ cleanup: return status; } -#define LINE_LENGTH 1024 +#define LINE_LENGTH 2048 int libuboot_load_file(struct uboot_ctx *ctx, const char *filename) { FILE *fp;