aboutsummaryrefslogtreecommitdiff
path: root/util-linux/dmesg.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* dmesg: handle multi-char log levelsPeter Korsgaard2013-01-051-7/+6
| | | | | | | | | | | | | | | | Since Linux 3.5 (7ff9554bb5: printk: convert byte-buffer to variable-length record buffer), klog buffer can now contain log lines with multi-char loglevel indicators (<[0-9]+>) - So we can no longer just skip 3 bytes. Instead skip past the terminating '>' like util-linux does. function old new delta dmesg_main 266 280 +13 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/0 up/down: 13/0) Total: 13 bytes Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* *: remove "Options:" string from help textsDenys Vlasenko2011-06-051-1/+0
| | | | | | | function old new delta packed_usage 28706 28623 -83 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move remaining help text from include/usage.src.hPere Orga2011-04-111-0/+10
| | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dmesg: more correct skipping of <N>; use faster putchar for most outputDenys Vlasenko2010-10-191-7/+12
| | | | | | | function old new delta dmesg_main 246 291 +45 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-161-1/+1
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dmesg: try to detect buffer sizeDenys Vlasenko2009-07-101-12/+18
| | | | | | | | function old new delta dmesg_main 214 246 +32 Signed-off-by: Randy Robertson <rmrobert@vmware.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* - update my name. No obj-code changes ;)Bernhard Reutner-Fischer2008-09-251-1/+1
|
* *: rename ATTRIBUTE_XXX to just XXX.Denis Vlasenko2008-07-051-1/+1
|
* - Rob sais that he rewrote it, so reinstate the GPLv2-only boilerplate.Bernhard Reutner-Fischer2008-05-201-1/+1
|
* - improve readabilityBernhard Reutner-Fischer2008-05-191-5/+10
|
* *: add -Wunused-parameter; fix resulting breakageDenis Vlasenko2008-03-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta procps_scan 1265 1298 +33 aliascmd 278 283 +5 parse_file_cmd 116 120 +4 dname_enc 373 377 +4 setcmd 90 93 +3 execcmd 57 60 +3 count_lines 72 74 +2 process_command_subs 340 339 -1 test_main 409 407 -2 mknod_main 179 177 -2 handle_incoming_and_exit 2653 2651 -2 argstr 1312 1310 -2 shiftcmd 131 128 -3 exitcmd 46 43 -3 dotcmd 297 294 -3 breakcmd 86 83 -3 evalpipe 353 349 -4 evalcommand 1180 1176 -4 evalcmd 109 105 -4 send_tree 374 369 -5 mkfifo_main 82 77 -5 evalsubshell 152 147 -5 typecmd 75 69 -6 letcmd 61 55 -6 add_cmd 1190 1183 -7 main 891 883 -8 ash_main 1415 1407 -8 parse_stream 1377 1367 -10 alloc_procps_scan 55 - -55 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 7/21 up/down: 54/-148) Total: -94 bytes text data bss dec hex filename 797195 658 7428 805281 c49a1 busybox_old 797101 658 7428 805187 c4943 busybox_unstripped
* dmesg,klogd: make code more readableDenis Vlasenko2007-11-161-26/+34
| | | | | | libbb: explain why we declare klogctl libbb: move defs around so that order makes more sense
* fbset: fix buglet where we were using wrong pointerDenis Vlasenko2007-11-061-1/+2
| | | | | | readahead: stop using stdio.h *: style fixes
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).Denis Vlasenko2007-09-271-3/+3
|
* don't pass argc in getopt32, it's superfluousDenis Vlasenko2007-08-181-1/+1
| | | | | | | | (add/remove: 0/0 grow/shrink: 12/131 up/down: 91/-727) Total: -636 bytes text data bss dec hex filename 773469 1058 11092 785619 bfcd3 busybox_old 772644 1058 11092 784794 bf99a busybox_unstripped
* delete tons of extra #includesDenis Vlasenko2007-05-311-2/+1
|
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* - sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g"Bernhard Reutner-Fischer2007-04-041-2/+2
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* attempt to regularize atoi mess.Denis Vlasenko2006-10-081-2/+2
|
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-1/+1
| | | | | | | | It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
* Change license statements (and clean up headers) on some of the files thatRob Landley2006-09-221-1/+1
| | | | Erik or I are primary copyright holders on.
* whitespace cleanupDenis Vlasenko2006-09-171-2/+2
|
* Add back in non-ifdef version of FEATURE_PRETTY_PRINT, and get the attributionRob Landley2006-07-271-3/+20
| | | | right this time.
* There's no excuse for adding new #ifdefs to the code like that. None at all.Rob Landley2006-07-271-19/+3
|
* allow people to display dmesg output without syslog levelsMike Frysinger2006-07-271-3/+19
|
* de-cuddle if( to if (Mike Frysinger2006-07-271-1/+1
|
* Fix three embarassing thinkos in the new dmesg.c:Rob Landley2006-07-061-3/+3
| | | | | | 1) the c argument shouldn't have had a : after that, dunno how that got there. 2) the xgetlarg for level was using size 3) because xgetlarg's error message _SUCKS_ (it does a show_usage() rather than giving any specific info about the range that was violated) I dropped the range down to 2 bytes. (Which works fine, I dunno why we were nit-picking about that...)
* Standardize on the vi editing directives being on the first line."Robert P. J. Day"2006-07-021-1/+2
|
* Rewrite of dmesg, smaller and simpler.Rob Landley2006-06-131-70/+25
|
* - shrink dmesg a bit.Bernhard Reutner-Fischer2006-03-291-41/+22
| | | | http://busybox.net/lists/busybox/2006-March/019477.html
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-2/+2
|
* Ronny L Nilsson writes:Eric Andersen2003-07-301-1/+5
| | | | | | If BusyBox was compiled with -DCONFIG_FEATURE_CLEAN_UP dmesg command segfaults if invoked with the "-n" option. (Due to a free() of an uninitialized pointer).
* Remove remaining libc5 support codeEric Andersen2003-07-221-8/+1
|
* Update a bunch of docs. Run a script to update my email addr.Eric Andersen2003-07-141-2/+2
|
* Major coreutils update.Manuel Novoa III2003-03-191-4/+4
|
* Save a few bytes and remove a redundant stringEric Andersen2003-03-071-1/+1
|
* audit for proper error handling, apply a few size optimizationsEric Andersen2003-03-071-27/+34
| | | | -Erik
* A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a fewEric Andersen2001-04-051-9/+4
| | | | | | shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can handle them sanely and all at once. -Erik
* It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen2001-02-201-1/+1
| | | | | | header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik
* This patch, put together by Manuel Novoa III, is a merge of workEric Andersen2001-02-141-7/+4
| | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
* Fix header file usage -- there were many unnecessary header files included inEric Andersen2001-01-271-1/+3
| | | | | | | busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik
* Use busybox error handling functions wherever possible.Matt Kraai2000-12-221-11/+4
|
* Some little cleanups from Larry DoolittleEric Andersen2000-12-091-1/+1
|
* Stop using TRUE and FALSE for exit status.Matt Kraai2000-12-011-4/+4
|
* Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen2000-09-251-1/+1
| | | | -Erik
* The result of getopt() is "int" and should be treated as suchPavel Roskin2000-07-171-1/+2
|
* Extract usage information into a separate file.Matt Kraai2000-07-161-10/+0
|
* Getopt'ed by Marc Nijdam <marc_nijdam@hp.com>Eric Andersen2000-07-141-35/+21
| | | | -Erik