]> git.proxmox.com Git - proxmox-mini-journalreader.git/log
proxmox-mini-journalreader.git
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>