Skip to content

Commit 23361e6

Browse files
committed
net: print size of embedded pasta in case of len failure
1 parent b0abfea commit 23361e6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

net.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ static int getPastaFd() {
7373
extern uint8_t* pasta_start;
7474
extern uint8_t* pasta_end;
7575
ptrdiff_t len = (uintptr_t)&pasta_end - (uintptr_t)&pasta_start;
76-
if (len <= 8) { /* Some reasonably safe value accounting for alignment */
77-
LOG_D("'pasta' is not embedded in this file");
76+
if (len <= 16) { /* Some reasonably safe value accounting for alignment */
77+
LOG_D("'pasta' is not embedded in this file, len=%td (<=16)", len);
7878
return -1;
7979
}
8080

0 commit comments

Comments
 (0)