[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #50822] tcp_state_str() compiled independently of TCP_
From: |
Konstantin |
Subject: |
[lwip-devel] [bug #50822] tcp_state_str() compiled independently of TCP_DEBUG, possibly increasing dead data |
Date: |
Tue, 18 Apr 2017 03:18:27 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Firefox/52.0 |
URL:
<http://savannah.nongnu.org/bugs/?50822>
Summary: tcp_state_str() compiled independently of TCP_DEBUG,
possibly increasing dead data
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: tomcat_84
Submitted on: Tue 18 Apr 2017 07:18:25 AM UTC
Category: TCP
Severity: 3 - Normal
Item Group: Feature Request
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
lwIP version: 2.0.0
_______________________________________________________
Details:
There are many
#if TCP_DEBUG || TCP_INPUT_DEBUG || TCP_OUTPUT_DEBUG
throughout "tcp.c", but this constant above is not inside one of these. It
seems to be used only by debug outputs. If compiler does not optimize it, this
leads to extra space used (about 144 bytes). Making it conditionally
compilable (along with tcp_debug_state_str() function) could reduce some
projects size.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?50822>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #50822] tcp_state_str() compiled independently of TCP_DEBUG, possibly increasing dead data,
Konstantin <=