]> git.proxmox.com Git - proxmox-mini-journalreader.git/log
proxmox-mini-journalreader.git
16 months agobuildsys: cleanup and expand clean target
Thomas Lamprecht [Wed, 17 May 2023 15:45:47 +0000 (17:45 +0200)]
buildsys: cleanup and expand clean target

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agomakefile: convert to use simple parenthesis
Thomas Lamprecht [Wed, 17 May 2023 15:45:01 +0000 (17:45 +0200)]
makefile: convert to use simple parenthesis

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
20 months agobuild: add pkg-config to build-depends
Fabian Grünbichler [Tue, 10 Jan 2023 11:31:46 +0000 (12:31 +0100)]
build: add pkg-config to build-depends

else the compiler/linker flags for libsystemd are not picked up.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2 years agobuildsys: include debug package on upload
Thomas Lamprecht [Wed, 24 Nov 2021 17:17:21 +0000 (18:17 +0100)]
buildsys: include debug package on upload

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2 years agobuildsys: change upload dist to bullseye
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>
2 years agobump version to 1.3-1
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>
2 years agoadd '-j' flag to output json
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>
3 years agobump version to 1.2-1
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>
3 years agod/control: bump debhelper compat level to 12
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>
3 years agod/copyright: proxmox uses AGPL-3.0-or-later
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>
5 years agobuildsys: switch upload dist over to buster
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>
5 years agobump version to 1.1-1
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>
5 years agod/control: fix priority-extra-is-replaced-by-priority-optional
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>
5 years agomake upload: pass arch
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>
5 years agofollouwp whitespace fixes
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>
5 years agouse memcpy/cmp instead of strncpy/cmp
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>
5 years agouse fwrite_unlocked instead of manually printing to buffer
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>
5 years agoreuse get_timestamp
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>
5 years agofix implicit type conversions
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>
5 years agoadd static to functions
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>
5 years agobump version to 1.0-1
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>
5 years agoadd .gitignore
Thomas Lamprecht [Tue, 14 May 2019 13:23:16 +0000 (15:23 +0200)]
add .gitignore

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agoadd optimization and security compiler flags
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>
5 years agocorrectly check write return value
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>
5 years agorework usage printing a bit
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>
5 years agoadd some spaces around operators
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>
5 years agonote that -b/-e are unix epoch based
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>
5 years agoadd error to usage and move exit there
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>
5 years agoget_timestamp: use fact that unsigned underflow is defined
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>
5 years agobuffer should be exactly 4k big, fix off-by-one
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>
5 years agomove variables only used in a single function in said function
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>
5 years agorename convert_argument to arg_to_uint64
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>
5 years agochange indentation to 4 spaces per level
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>
5 years agofixup rename
Thomas Lamprecht [Tue, 14 May 2019 09:40:49 +0000 (09:40 +0000)]
fixup rename

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 years agobuildsys: allow to build source package
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>
5 years agobuildsys: add upload target
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>
5 years agobuildsys: do not hardcode build directory name
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>
5 years agobuildsys: use dpkg-dev make helpers for version and arch
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>
5 years agorename to mini-journalreader
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>
5 years agobuildsys: add dinstall target
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>
5 years agobuildsys: fix building all target
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>
5 years agoinital commit for journalreader
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>