Skip to content

Commit

Permalink
fix: logging
Browse files Browse the repository at this point in the history
  • Loading branch information
neferin12 committed Nov 8, 2023
1 parent 6b1c654 commit a9c90d1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions arch_pkgs/c/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
pkgbase = cism
pkgdesc = C implementation of iSM
pkgver = 1.0.3
pkgver = 1.0.4
pkgrel = 1
url = https://github.com/neferin12/iSM
arch = x86_64
license = MIT
makedepends = cmake
depends = glibc
depends = openmpi
source = libism-1.0.3.tar.gz::https://github.com/neferin12/iSM/archive/v1.0.3/libism-1.0.3.tar.gz
source = libism-1.0.4.tar.gz::https://github.com/neferin12/iSM/archive/v1.0.4/libism-1.0.4.tar.gz
sha256sums = c19929a4e563aff8783b57715df2ca6221704d3ade0480bd556ce55ad5fb6a23

pkgname = libism
Expand Down
2 changes: 1 addition & 1 deletion arch_pkgs/c/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pkgbase='cism'
pkgname=('libism' 'cism')
pkgver=1.0.3
pkgver=1.0.4
pkgrel=1
pkgdesc='C implementation of iSM'
arch=('x86_64')
Expand Down
2 changes: 1 addition & 1 deletion c/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.5)

project(cISM VERSION 1.0.3 DESCRIPTION "C implementation of iSM")
project(cISM VERSION 1.0.4 DESCRIPTION "C implementation of iSM")

include(GNUInstallDirs)

Expand Down
2 changes: 1 addition & 1 deletion c/src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
add_library(ism SHARED algorithm.c io.c log.c organization.c errorHandling.c constants.c)
target_include_directories(ism PUBLIC ${PROJECT_SOURCE_DIR}/src/headers)

add_executable(cism main.c cismMPI.c headers/cismMPI.h)
add_executable(cism main.c cismMPI.c headers/cismMPI.h log.c headers/log.h)

find_package(PkgConfig REQUIRED)
find_package(MPI REQUIRED)
Expand Down
4 changes: 2 additions & 2 deletions c/src/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* IN THE SOFTWARE.
*/

#include "log.h"
#include "headers/log.h"

#define MAX_CALLBACKS 32

Expand Down Expand Up @@ -55,7 +55,7 @@ static void stdout_callback(log_Event *ev) {
buf[strftime(buf, sizeof(buf), "%H:%M:%S", ev->time)] = '\0';
#ifdef LOG_USE_COLOR
fprintf(
ev->udata, "%s %s%-5s\x1b[0m \x1b[90m:\x1b[0m ",
ev->udata, "%s %s%-5s\x1b[0m\x1b[90m:\x1b[0m ",
buf, level_colors[ev->level], level_strings[ev->level]);
#else
fprintf(
Expand Down

0 comments on commit a9c90d1

Please sign in to comment.