]>
git.proxmox.com Git - proxmox-mini-journalreader.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Thomas Lamprecht [Wed, 24 Nov 2021 17:12:03 +0000 (18:12 +0100)]
buildsys: change upload dist to bullseye
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 24 Nov 2021 17:08:39 +0000 (18:08 +0100)]
bump version to 1.3-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dominik Csapak [Wed, 24 Nov 2021 14:47:46 +0000 (15:47 +0100)]
add '-j' flag to output json
in the format:
{"data":[... log lines ...],"success":1}
this is chosen so that we can achieve api compatibility when we stream
this output to an api client
strings are escaped by replacing '"', '\' and all values <= 0x1F by their
\uXXXX representation
invalid utf8 sequences will be returned as they are
(jq and the browser can handle that)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Thomas Lamprecht [Fri, 14 May 2021 14:57:03 +0000 (16:57 +0200)]
bump version to 1.2-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 14 May 2021 14:55:31 +0000 (16:55 +0200)]
d/control: bump debhelper compat level to 12
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 14 May 2021 14:52:00 +0000 (16:52 +0200)]
d/copyright: proxmox uses AGPL-3.0-or-later
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 23 May 2019 16:21:56 +0000 (18:21 +0200)]
buildsys: switch upload dist over to buster
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 21 May 2019 17:23:11 +0000 (19:23 +0200)]
bump version to 1.1-1
for buster, but no major bump - that feels a bit silly here
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 21 May 2019 17:20:37 +0000 (19:20 +0200)]
d/control: fix priority-extra-is-replaced-by-priority-optional
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 21 May 2019 17:18:19 +0000 (19:18 +0200)]
make upload: pass arch
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 16 May 2019 14:52:18 +0000 (16:52 +0200)]
follouwp whitespace fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dominik Csapak [Thu, 16 May 2019 10:22:19 +0000 (12:22 +0200)]
use memcpy/cmp instead of strncpy/cmp
faster since it does not have to look for '\0'
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Thu, 16 May 2019 10:22:18 +0000 (12:22 +0200)]
use fwrite_unlocked instead of manually printing to buffer
this does the same as our old code, but is a lot shorter,
so it was uneccessary to have and the performance is the same
(no measureable difference)
we still need a wrapper to be sure that we wrote everything
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Thu, 16 May 2019 10:22:17 +0000 (12:22 +0200)]
reuse get_timestamp
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Thu, 16 May 2019 10:22:16 +0000 (12:22 +0200)]
fix implicit type conversions
by either fixing the type, or manually casting
this makes the types more explicit
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Thu, 16 May 2019 10:22:15 +0000 (12:22 +0200)]
add static to functions
this changes link behaviour and those functions are not exported to other
files when some c code is linked against our code
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Thomas Lamprecht [Wed, 15 May 2019 09:28:30 +0000 (11:28 +0200)]
bump version to 1.0-1
for initial package release
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 13:23:16 +0000 (15:23 +0200)]
add .gitignore
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 12:42:25 +0000 (14:42 +0200)]
add optimization and security compiler flags
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 12:50:47 +0000 (14:50 +0200)]
correctly check write return value
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 11:51:34 +0000 (11:51 +0000)]
rework usage printing a bit
do most in a single fprintf call and use <format desc> tags
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 11:42:55 +0000 (11:42 +0000)]
add some spaces around operators
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 11:20:05 +0000 (11:20 +0000)]
note that -b/-e are unix epoch based
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 11:01:29 +0000 (11:01 +0000)]
add error to usage and move exit there
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 10:48:23 +0000 (10:48 +0000)]
get_timestamp: use fact that unsigned underflow is defined
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 10:46:50 +0000 (10:46 +0000)]
buffer should be exactly 4k big, fix off-by-one
as the last byte never got really touched this may not do much, but
if we employ such opimizations then we should do so correctly.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 10:46:15 +0000 (10:46 +0000)]
move variables only used in a single function in said function
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 10:22:56 +0000 (10:22 +0000)]
rename convert_argument to arg_to_uint64
and make it static and move it nearer to it's use
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 09:41:56 +0000 (09:41 +0000)]
change indentation to 4 spaces per level
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 09:40:49 +0000 (09:40 +0000)]
fixup rename
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 09:32:03 +0000 (09:32 +0000)]
buildsys: allow to build source package
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 09:31:32 +0000 (09:31 +0000)]
buildsys: add upload target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 09:16:32 +0000 (09:16 +0000)]
buildsys: do not hardcode build directory name
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 09:15:37 +0000 (09:15 +0000)]
buildsys: use dpkg-dev make helpers for version and arch
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 09:11:44 +0000 (09:11 +0000)]
rename to mini-journalreader
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 08:27:20 +0000 (08:27 +0000)]
buildsys: add dinstall target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 08:27:07 +0000 (08:27 +0000)]
buildsys: fix building all target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dominik Csapak [Mon, 13 May 2019 12:49:18 +0000 (14:49 +0200)]
inital commit for journalreader
provides a minimalistic binary to show the journal content
shows a cursor after and before the output
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>