Sylvain Munaut
dca7d2caaa
doc: Fix the Doxygen section endings
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-04-18 21:53:23 +02:00
Sylvain Munaut
17af41d9cd
utils: Fix alias to weak alias to allow OSX compilation
...
Using a weak alias works just as good AFAICT.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-19 22:30:39 +01:00
Sylvain Munaut
e55ae3ae1c
core/utils: Add a symbol alias for a previous typo for compatibility
...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-11 23:06:55 +01:00
Sylvain Munaut
ff23d24972
utils: Fix a bad double osmo_ prefix for osmo_hexdump_nospc
...
Hopefully no project where using them it seems
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-11-10 23:03:18 +01:00
Harald Welte
8598f1866e
doxygen: add doxygen module 'utils'
2011-08-17 17:14:12 +02:00
Holger Hans Peter Freyther
128d9e2343
osmo_hexdump: Fix segfault when input is too long.
...
In snprinftf the size is a size_t (unsigned) in case we want
to write more than we have available, len_remain will be < 0.
This was spotted while removing hexdump from simtrace and comparing
it to our implementation.
int snprintf(char *str, size_t size, const char *format, ...);
2011-07-15 16:07:23 +02:00
Pablo Neira Ayuso
87f7b25e56
utils: use namespace prefix osmo_*
...
Summary of changes:
s/bcd2char/osmo_bcd2char/g
s/char2bcd/osmo_char2bcd/g
s/hexparse/osmo_hexparse/g
s/hexdump/osmo_hexdump/g
s/hexdump_nospc/osmo_hexdump_nospc/g
s/ubit_dump/osmo_ubit_dump/g
s/static_assert/osmo_static_assert/g
2011-05-07 13:00:51 +02:00
Pablo Neira Ayuso
8341934844
include: reorganize headers file to include/osmocom/[gsm|core]
...
This patch moves all GSM-specific definitions to include/osmocom/gsm.
Moreover, the headers in include/osmocore/ have been moved to
include/osmocom/core.
This has been proposed by Harald Welte and Sylvain Munaunt.
Tested with `make distcheck'.
Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
2011-03-23 18:09:28 +01:00
Harald Welte
2822296ddb
LOGGING: configure logging from the vty
...
We can now configure logging to (multiple) files, stderr and syslog
from the vty command line in a persistent way (config file)
2011-02-18 20:37:04 +01:00
Harald Welte
b05552b14c
[utils] introduce ubit_dump to dump buffers of unpacked bits
2011-02-08 16:56:23 +01:00
Harald Welte
3d0ac5e446
[utils] add 'bitdump' function for bitfields
2011-02-08 16:55:03 +01:00
Holger Hans Peter Freyther
121f358de0
utils: Fix typo. It is ascii.
2010-11-19 19:21:42 +01:00
Harald Welte
dee47cd14d
add new hexdump_nospc() function
2010-07-30 11:47:50 +02:00
Harald Welte
40481e8954
move hexdump() from logging.c to utils.c
2010-07-30 11:40:32 +02:00
Harald Welte
3eba991b3d
Import 'hexparse' function from OpenBSC
2010-07-30 10:37:29 +02:00
Harald Welte
b59f9350f8
get_value_string(): return "unknown 0x..." instead of "unknown"
2010-03-25 11:46:46 +08:00
Harald Welte
a73e2f9acb
import bcd2char() and char2bcd() from OpenBSC
2010-03-04 10:50:32 +01:00
Harald Welte
d284cd9f43
Import value_string utilities and some RSL stuff from OpenBSC
2010-03-01 21:58:31 +01:00