Cosmetic changes (#19920)

This commit is contained in:
s-hadinger 2023-11-04 11:46:25 +01:00 committed by GitHub
parent dcbb22a256
commit 46df036b51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -648,10 +648,10 @@ String DNSGetIPStr(uint32_t idx)
void WifiDumpAddressesIPv6(void) void WifiDumpAddressesIPv6(void)
{ {
for (netif* intf = netif_list; intf != nullptr; intf = intf->next) { for (netif* intf = netif_list; intf != nullptr; intf = intf->next) {
if (!ip_addr_isany_val(intf->ip_addr)) AddLog(LOG_LEVEL_DEBUG, "WIF: '%c%c' IPv4 %s", intf->name[0], intf->name[1], IPAddress(intf->ip_addr).toString().c_str()); if (!ip_addr_isany_val(intf->ip_addr)) AddLog(LOG_LEVEL_DEBUG, "WIF: '%c%c%i' IPv4 %s", intf->name[0], intf->name[1], intf->num, IPAddress(intf->ip_addr).toString().c_str());
for (uint32_t i = 0; i < LWIP_IPV6_NUM_ADDRESSES; i++) { for (uint32_t i = 0; i < LWIP_IPV6_NUM_ADDRESSES; i++) {
if (!ip_addr_isany_val(intf->ip6_addr[i])) if (!ip_addr_isany_val(intf->ip6_addr[i]))
AddLog(LOG_LEVEL_DEBUG, "IP : '%c%c' IPv6 %s %s", intf->name[0], intf->name[1], AddLog(LOG_LEVEL_DEBUG, "IP : '%c%c%i' IPv6 %s %s", intf->name[0], intf->name[1], intf->num,
IPAddress(intf->ip6_addr[i]).toString().c_str(), IPAddress(intf->ip6_addr[i]).toString().c_str(),
ip_addr_islinklocal(&intf->ip6_addr[i]) ? "local" : ""); ip_addr_islinklocal(&intf->ip6_addr[i]) ? "local" : "");
} }

View File

@ -2851,7 +2851,7 @@ void HandleUploadLoop(void) {
char tmp[16]; char tmp[16];
WebGetArg("fsz", tmp, sizeof(tmp)); // filesize WebGetArg("fsz", tmp, sizeof(tmp)); // filesize
uint32_t upload_size = (!strlen(tmp)) ? 0 : atoi(tmp); uint32_t upload_size = (!strlen(tmp)) ? 0 : atoi(tmp);
AddLog(LOG_LEVEL_DEBUG, D_LOG_UPLOAD "freespace=%i filesize=%i", ESP.getFreeSketchSpace(), upload_size); AddLog(LOG_LEVEL_DEBUG, D_LOG_UPLOAD "Freespace %i Filesize %i", ESP.getFreeSketchSpace(), upload_size);
if (upload_size > ESP.getFreeSketchSpace()) { // TODO revisit this test if (upload_size > ESP.getFreeSketchSpace()) { // TODO revisit this test
#endif #endif
Web.upload_error = 4; // Program flash size is larger than real flash size Web.upload_error = 4; // Program flash size is larger than real flash size

View File

@ -367,7 +367,7 @@ void BerryInit(void) {
be_pop(berry.vm, 1); be_pop(berry.vm, 1);
} }
AddLog(LOG_LEVEL_INFO, PSTR(D_LOG_BERRY "Berry initialized, RAM used=%u bytes"), callBerryGC()); AddLog(LOG_LEVEL_INFO, PSTR(D_LOG_BERRY "Berry initialized, RAM used %u bytes"), callBerryGC());
berry_init_ok = true; berry_init_ok = true;
// we generate a synthetic event `autoexec` // we generate a synthetic event `autoexec`