aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* .vimrc: add basic formatting config for vim users0.3Michał Łyszczek2020-05-281-0/+12
| | | | Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
* src/el-decode-number.c: fix potential loose of precision on 64bit systemsMichał Łyszczek2019-07-291-1/+5
| | | | | | | | | | | | | | | | | *out |= (n[i] & 0x7f) << (i * 7); (n[i] & 0x7f) - will be an int value (32bit in most cases) and if (i * 7) is larger than 32, we will shift outside of 32bit and 0 will be written into *out which is not what we want. To prevent this, left operand of << should be first casted to 64bit and then shift should be performed. Marking no_ci since this code is not used in embedlog, and is provided as an example for decoding numbers in binary logs. no_ci Reported-by: pvs-studio Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
* bump version to 0.3.4v0.3.4Michał Łyszczek2019-06-097-7/+7
| | | | Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
* tst/test-el-pbinary.c: add missing checks for nsec and msecMichał Łyszczek2019-06-081-21/+44
| | | | | | | print_check() contained checks only for usec which resulted in false check errors. Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
* tst/test-el-pbinary.c: fix operator precedenceMichał Łyszczek2019-06-081-2/+2
| | | | | | | if (flags & 0x04 != 0x04) is invalid, as 0x04 != 0x04 will be evaluated first. Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
* fix: add missing #ifdef LLONG_MAX in binary testsMichał Łyszczek2019-06-081-0/+13
| | | | | This caused error failure on machines where long long is not available
* src/el-print.c: fix possible buffer overflow in el_print()Michał Łyszczek2019-06-083-5/+29
| | | | | | | | | In case when message, finfo and colors are enabled and are full (their text is as long as defined max values) it was possible to overflow buffer. Very rare situation but surely it will happend, to someone one day. Not anymore, it won't. Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
* fix: some package building problemsv0.3.3Michał Łyszczek2019-02-145-15/+15
|
* bump versions to 0.3.3Michał Łyszczek2019-02-147-7/+7
|
* src/el-pmemory.c: fix usage of uninitialized variableMichał Łyszczek2019-02-141-0/+2
|
* bump to version 0.3.2v0.3.2Michał Łyszczek2018-11-282-2/+2
| | | | no_buildbot
* configure.ac: remove mandatory function checksMichał Łyszczek2018-11-251-4/+2
| | | | | | | | | these functions are mandatory anyway and build will crash when unavailable, but some compilers/systems may have problem in checking them. For example, clang crashes when checking for memcpy when thread sanitizer is enabled.
* options: fix g_options altered after el_ocleanupMichał Łyszczek2018-11-252-1/+64
| | | | | | calling el_ocleanup() changed outputs in global g_options object, rendering all el_print function family to stop printing after any el_ocleanup() call.
* pkg: add scipts to create packages for various systemsv0.3.1-r10.3.1Michał Łyszczek2018-11-1513-0/+503
|
* makefile: don't build examples on make allMichał Łyszczek2018-11-152-2/+10
|
* fix: lib version which was forgotten in 0.3.0v0.3.1Michał Łyszczek2018-05-242-2/+2
| | | | no_buildbot
* fix: missing el_cleanup in tests causing memory leakv0.3.0Michał Łyszczek2018-05-061-0/+2
|
* last time minor fixesMichał Łyszczek2018-05-066-18/+39
| | | | no_buildbot
* little fixes in documentationMichał Łyszczek2018-05-064-7/+72
| | | | no_buildbot
* run compilation test in parallelMichał Łyszczek2018-05-052-51/+143
|
* rename test directories to allow parallel testingMichał Łyszczek2018-05-052-29/+29
|
* fix: binary logs could be enabled without output to fileMichał Łyszczek2018-05-031-24/+58
| | | | also added better handling of unmet dependencies of options
* bump version to v0.3.0Michał Łyszczek2018-05-036-6/+6
|
* use unsigned int instead of speed_t to prevent compiler error when termios ↵Michał Łyszczek2018-05-033-7/+7
| | | | is not available
* udpdated documentationMichał Łyszczek2018-04-262-6/+94
|
* add: couple more EINVAL checks for public functionsMichał Łyszczek2018-04-264-3/+8
|
* Merge branch 'solaris-build-fix'Michał Łyszczek2018-04-231-0/+2
|\
| * add: search lm library for mathsolaris-build-fixMichał Łyszczek2018-04-231-0/+2
|/
* fix; tests some systems dont support echo -n flagMichał Łyszczek2018-04-231-26/+26
|
* update readmeMichał Łyszczek2018-04-231-0/+4
|
* fix: compilation error when using portable snprintfMichał Łyszczek2018-04-231-1/+1
|
* Merge branch 'nuttx-support'Michał Łyszczek2018-04-2344-553/+3843
|\
| * fix: baudrate for tty example - some systems dont like such high speednuttx-supportMichał Łyszczek2018-04-221-1/+1
| |
| * add config.h to pbinary testMichał Łyszczek2018-04-221-0/+2
| |
| * support automatic reopening of files when frotate is enabledMichał Łyszczek2018-04-222-59/+347
| |
| * don't fail every el_print to file after open() failedMichał Łyszczek2018-04-222-17/+75
| | | | | | | | | | | | Instead each el_print to file will now try to reopen file that could not have been opened. ENAMETOOLONG will still result in each el_print to fail afterwards
| * fix compilation warningsMichał Łyszczek2018-04-212-9/+1
| |
| * fix: embedlog forever fails after writing to non-existing dirMichał Łyszczek2018-04-213-0/+72
| | | | | | | | | | | | when directory we log into disappear, them we make failed write to it, we end up with options->file being NULL, even when said directory reappear with previous contents
| * fix compilation warningsMichał Łyszczek2018-04-206-13/+17
| | | | | | | | | | dont try to add credits for snprintf it this is not used (silents compiler warning about unused variable)
| * change some ifdef to simple ifMichał Łyszczek2018-04-201-5/+5
| |
| * fix: clang analyzer warningMichał Łyszczek2018-04-201-8/+5
| |
| * add: don't *ever* modify in el_perror functions famillyMichał Łyszczek2018-04-192-0/+11
| |
| * fix: broken distcheck after file cleanupMichał Łyszczek2018-04-181-4/+1
| |
| * fix failing test when --disable-timestamp was setMichał Łyszczek2018-04-181-2/+2
| |
| * add new options to test-compilation scriptMichał Łyszczek2018-04-181-1/+5
| |
| * add option to disable fractions of seconds in compile timeMichał Łyszczek2018-04-1815-96/+407
| | | | | | | | this saves 10bytes from stack memory for each function call
| * add: logging of binary dataMichał Łyszczek2018-04-1731-336/+1703
| |
| * add missing checks for fync and fileno in configureMichał Łyszczek2018-04-161-2/+1
| |
| * add possibility to always sync do disc chosen log levelsMichał Łyszczek2018-04-159-5/+254
| |
| * limited log levels to 8 to save memoryMichał Łyszczek2018-04-156-34/+23
| |