5db8c792 | 18-Apr-2023 |
Andrew Jeffery <andrew@aj.id.au> |
obmc-console: Fix bugprone-implicit-widening-of-multiplication-result
For example:
``` /usr/bin/clang-tidy -checks=-*, bugprone-implicit-widening-of-multiplication-result -export-fixes /tmp/tmpppty
obmc-console: Fix bugprone-implicit-widening-of-multiplication-result
For example:
``` /usr/bin/clang-tidy -checks=-*, bugprone-implicit-widening-of-multiplication-result -export-fixes /tmp/tmpppty3tdm/tmpod_qxcie.yaml -p=build /mnt/host/andrew/home/andrew/src/openbmc/obmc-console/test/test-config-parse-logsize.c ../test/test-config-parse-logsize.c:24:11: error: performing an implicit widening conversion to type 'size_t' (aka 'unsigned long') of a multiplication performed in type 'int' [bugprone-implicit-widening-of-multiplication-result,-warnings-as-errors] { "4k", 4 * 1024, 0 }, ^ ```
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I571983c6381fad7a14fb179108d14220f5dfdeca
show more ...
|
a72711af | 18-Apr-2023 |
Andrew Jeffery <andrew@aj.id.au> |
obmc-console: Add clang-format configuration
And apply the formatting.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I75251051affa5129c8698185baf8d151302b19d6 |
4f79c0a1 | 18-Apr-2023 |
Andrew Jeffery <andrew@aj.id.au> |
test: test-config-parse-logsize: Don't print size uninitialised
``` [15/34] Compiling C object test/test-config-parse-logsize.p/test-config-parse-logsize.c.o ../../../test/test-config-parse-logsize.
test: test-config-parse-logsize: Don't print size uninitialised
``` [15/34] Compiling C object test/test-config-parse-logsize.p/test-config-parse-logsize.c.o ../../../test/test-config-parse-logsize.c:53:4: warning: 6th function call argument is an uninitialized value [core.CallAndMessage] warn("[%zu] Str %s expected size %lu rc %d," ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: If2815404f76e9c8e6b9b5c55abb78a102a808c03
show more ...
|
d0a85567 | 17-Apr-2023 |
Andrew Jeffery <andrew@aj.id.au> |
obmc-console: Convert build to meson
The project is seeing some activity recently, so let's align it with the desires here:
https://gerrit.openbmc.org/c/openbmc/docs/+/47732
Signed-off-by: Andrew
obmc-console: Convert build to meson
The project is seeing some activity recently, so let's align it with the desires here:
https://gerrit.openbmc.org/c/openbmc/docs/+/47732
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I96941365440c9c164d222b4d18e6a57409819308
show more ...
|
d30d7573 | 18-Apr-2023 |
Andrew Jeffery <andrew@aj.id.au> |
config: Remove use of %m sscanf format specifier
The %m format specifier isn't defined by the C standards and so produces an error under CFLAGS=`-pedantic -Werror`.
Signed-off-by: Andrew Jeffery <a
config: Remove use of %m sscanf format specifier
The %m format specifier isn't defined by the C standards and so produces an error under CFLAGS=`-pedantic -Werror`.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I7fd818582472ced3f8e6adc2ea5d545b5b7dc020
show more ...
|
8f548f6c | 17-Apr-2023 |
Andrew Jeffery <andrew@aj.id.au> |
obmc-console: Clean up invalid sign comparisons
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I83fae6857620ca2913952bea597c1299dd962620 |
71e7a249 | 12-Feb-2020 |
Andrew Jeffery <andrew@aj.id.au> |
console-client: Enable use of a configuration file
However, only initialise a config if the option was provided. This avoids searching for the default config, which may not exist and is intended for
console-client: Enable use of a configuration file
However, only initialise a config if the option was provided. This avoids searching for the default config, which may not exist and is intended for the server.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I08f736243c1843bfb8855f5ceb69418d59a8775a
show more ...
|
5e7c0786 | 09-Feb-2020 |
Andrew Jeffery <andrew@aj.id.au> |
console-socket: Add an optional component to UNIX socket abstract names
Allows multiple instances of obmc-console-server to run concurrently without interfering with each other.
Signed-off-by: Andr
console-socket: Add an optional component to UNIX socket abstract names
Allows multiple instances of obmc-console-server to run concurrently without interfering with each other.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I7ef9c14e554c687e8d606e1eaaed82a7f1c06d98
show more ...
|
c5ce2cbd | 25-Jul-2019 |
Jeremy Kerr <jk@ozlabs.org> |
tests: Add client escape test
Add a small testcase for the escape-parsing code.
Change-Id: I2296d1bd0b1a97b46565e56ed867dd39a159baec Signed-off-by: Jeremy Kerr <jk@ozlabs.org> |
a395a771 | 19-Mar-2019 |
Johnathan Mantey <johnathanx.mantey@intel.com> |
Fix a recursive header include
The test-config-parse-logfile test case recursively includes console-server.h.
Change-Id: I699ba24ece8671a0529cae3e25e258db811d33f5 Signed-off-by: Johnathan Mantey <j
Fix a recursive header include
The test-config-parse-logfile test case recursively includes console-server.h.
Change-Id: I699ba24ece8671a0529cae3e25e258db811d33f5 Signed-off-by: Johnathan Mantey <johnathanx.mantey@intel.com>
show more ...
|
9747d63d | 22-Jun-2018 |
Kun Yi <kunyi731@gmail.com> |
test: config: Add a test for config_parse_logsize.
Add a unit test that validates config_parse_logsize returns expected values.
Tested: 'make check' passed when ran under x86_64 environment.
Chang
test: config: Add a test for config_parse_logsize.
Add a unit test that validates config_parse_logsize returns expected values.
Tested: 'make check' passed when ran under x86_64 environment.
Change-Id: I54d9478157fab3db7c2c5879d12e719e738a1099 Signed-off-by: Kun Yi <kunyi731@gmail.com>
show more ...
|
c9775ce7 | 07-Feb-2017 |
Jeremy Kerr <jk@ozlabs.org> |
server: Use ringbuffer for socket backlog
Currently, the socket handler uses a linear buffer for the backlog data; this means we need to shift up to 128kB of data after each socket write().
This ch
server: Use ringbuffer for socket backlog
Currently, the socket handler uses a linear buffer for the backlog data; this means we need to shift up to 128kB of data after each socket write().
This change introduces a single-producer-multiple-consumer ringbuffer, to avoid the need for memmove()ing data around; we can simply update pointers instead of shifting data.
We add this as a new file (ringbuffer.c), to make it a little more modular. To mitigate the risk of subtle pointer arithmetic issues, we add a set of tests too.
Change-Id: Ib7c5151d3cf1f588436f5461000b6fed22d0681c Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
show more ...
|
c91be8e7 | 15-Sep-2016 |
Matthew Barth <msbarth@us.ibm.com> |
Convert build process to autotools
Updated to follow the base openbmc autotool standard.
Resolves openbmc/obmc-console#4
Change-Id: If6af4faacfcaf853d7642bd3a6f22b6f6190a776 Signed-off-by: Matthew
Convert build process to autotools
Updated to follow the base openbmc autotool standard.
Resolves openbmc/obmc-console#4
Change-Id: If6af4faacfcaf853d7642bd3a6f22b6f6190a776 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
show more ...
|