Gil Pitney
be64964f1e
driver: wifi: simplelink: Fix socket offload after s_addr cleanup
...
The commit 8592501828
("net: Remove s_addr/s6_addr defines from in_addr/in6_addr")
did a (welcomed) removal of a #define s_addr for which the SimpleLink
SDK was checking, breaking the socket_offload driver build.
This patch fixes the driver to work with this new, better
s_addr symbol definition.
Signed-off-by: Gil Pitney <gil.pitney@linaro.org>
2018-10-04 07:42:12 -05:00
Flavio Ceolin
18af4c6299
kernel: Fix overflow test problem introduced in 92ea2f9
...
The builtin function __builtin_umul_overflow returns a boolean and
should not checked as an integer.
Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
2018-10-04 05:20:29 -07:00
Jukka Rissanen
57a8db7789
net: Use log_strdup() when printing debug strings
...
As the debugging print calls are async, all the strings that might
be overwritten must use log_strdup() which will create a copy
of the printable string.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
d67414e96c
samples: net: syslog: Remove the sample application
...
The application won't work anymore as it uses the old syslog
logging and networking is now converted to use the new logger
so there is no need for this sample application.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
df13dcf911
net: app: No need to print anything if resolving is not possible
...
The code was trying to print peer IP address string but that
pointer could contain garbage. There is actually no need to print
anything in this case, the error code return is enough.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
7088d4e949
samples: net: lwm2m_client: Convert to new logging system
...
Use new logging system instead of SYS_LOG.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
5705573c46
net: lwm2m: Convert to new logging system
...
Use new logging system instead of SYS_LOG.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
ac88baca02
usb: net: Convert to use new logging
...
Convert the USB networking to use the new logging system.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
4851e2ea1b
usb: Fix net_hexdump_frags() parameters
...
One parameter was missing when calling net_hexdump_frags() which
caused compile error.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
f3f04bf9eb
tests: net: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
5ad399e0d1
samples: net: leds_demo: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
61cc71e4c1
samples: net: echo-*: Add openthread tag for sanitychecker
...
Add "openthread" tag for sanitychecker when it is running
OpenThread specific tests. This way it is easier to run just
those few OpenThread specific tests.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
e5ab098ceb
samples: net: wpanusb: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
b8f70b749b
samples: net: wpan_serial: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
ef6eb3d628
samples: net: mqtt_publisher: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
5f2f8629d0
samples: net: rpl_node: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
5ead61089b
samples: net: rpl_border_router: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
782655f89b
samples: net: nats: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
e1f45c6733
samples: net: lldp: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
f5a3e77434
samples: net: sntp: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
22c8ccbca9
samples: net: zperf: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
77c9071495
samples: net: ws_echo_server: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
2883d92c5e
samples: net: telnet: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
b08d420fad
samples: net: stats: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
7b2bdfc491
samples: net: sockets: Convert to use new logging
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
9bae75dbd3
samples: net: ws_console: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
3565d7ff5b
samples: net: vlan: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
96be19ae23
samples: net: traffic_class: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
0ccba6a14b
samples: net: throughput_server: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
1bcf1cf475
samples: net: promiscuous: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
d38694af80
samples: net: mdns_responder: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
de5cbf9ed4
samples: net: irc_bot: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
31a6d93c41
samples: net: ipv4_autoconf: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
7218467055
samples: net: http_server: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
c69cdc0599
samples: net: http_client: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
749e957e62
samples: net: gptp: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
be7ea732e4
samples: net: eth_native_posix: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
85e7610fab
samples: net: dns_resolve: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
2f0f88ebf1
samples: net: dhcpv4_client: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
11a019053d
samples: net: coap_server: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
5f238ac2ea
samples: net: echo_server: Convert to new logging system
...
Use new logging system with support for network log level.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
d671c4693c
drivers: net: loopback: Convert to use new logging
...
Convert the driver to use the new logging system.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
1fea1418de
drivers: net: slip: Convert to use new logging
...
Convert the driver to use the new logging system.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
90dc38f8c9
drivers: ieee802154: Convert to use new logging
...
Convert the IEEE 802.15.4 drivers to use the new logging system.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
20295c821b
drivers: eth: Convert to use new logging
...
Convert the ethernet drivers to use the new logging system.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
9b460b1105
net: Use logger hexdump print macro
...
As the logger provides hexdump macro, use that instead of our own.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
15e7e3ea4b
net: ip: Split debug prints into smaller pieces
...
Currently logging subsystem supports quite small number of function
parameters. So split some long functions into smaller pieces.
Hopefully this is just a temporary patch and we can support more
parameters to logging macros.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
2bc38a8f88
net: mgmt: Use correct printf modifier in debug print
...
Net event information debug print was using wrong printf modifiers.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
502130d6ea
net: lib: Convert mqtt library to use log level
...
Use network log level in mqtt library.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00
Jukka Rissanen
1165f0d400
net: lib: Convert websocket library to use log level
...
Use network log level in Websocket library.
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2018-10-04 14:13:57 +03:00