Skip to content

Commit

Permalink
Minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
interkosmos committed Mar 5, 2024
1 parent d7ee6c4 commit df4012c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
4 changes: 2 additions & 2 deletions app/dmfs.f90
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,9 @@ pure function request_name_string(request_name, i, n, observ_name) result(str)
character(len=:), allocatable :: str !! Result.

if (present(n)) then
str = 'request ' // trim(request_name) // ' (' // dm_itoa(i) // ')'
else
str = 'request ' // trim(request_name) // ' (' // dm_itoa(i) // ' of ' // dm_itoa(n) // ')'
else
str = 'request ' // trim(request_name) // ' (' // dm_itoa(i) // ')'
end if

if (present(observ_name)) then
Expand Down
4 changes: 2 additions & 2 deletions app/dmpipe.f90
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,9 @@ pure function request_name_string(request_name, i, n, observ_name) result(str)
character(len=:), allocatable :: str !! Result.

if (present(n)) then
str = 'request ' // trim(request_name) // ' (' // dm_itoa(i) // ')'
else
str = 'request ' // trim(request_name) // ' (' // dm_itoa(i) // ' of ' // dm_itoa(n) // ')'
else
str = 'request ' // trim(request_name) // ' (' // dm_itoa(i) // ')'
end if

if (present(observ_name)) then
Expand Down
9 changes: 2 additions & 7 deletions app/dmserial.f90
Original file line number Diff line number Diff line change
Expand Up @@ -433,11 +433,6 @@ integer function read_observ(tty, observ, node_id, sensor_id, source, debug) res
observ=observ, error=response%error)
cycle
end if

if (debug_) then
call dm_log_debug('extracted response ' // trim(response%name) // ' of ' // &
request_name_string(request%name, i), observ=observ)
end if
end do

if (debug_) then
Expand Down Expand Up @@ -468,9 +463,9 @@ pure function request_name_string(request_name, i, n, observ_name) result(str)
character(len=:), allocatable :: str !! Result.

if (present(n)) then
str = 'request ' // trim(request_name) // ' (' // dm_itoa(i) // ')'
else
str = 'request ' // trim(request_name) // ' (' // dm_itoa(i) // ' of ' // dm_itoa(n) // ')'
else
str = 'request ' // trim(request_name) // ' (' // dm_itoa(i) // ')'
end if

if (present(observ_name)) then
Expand Down
2 changes: 1 addition & 1 deletion test/dmtestlogger.f90
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ logical function test01() result(stat)
'"1970-01-01T00:00:00.000000+00:00", "node_id": "test-node", "sensor_id": "test-sensor", ' // &
'"target_id": "test-target", "observ_id": "6b0ca75ae594425a8d38adfd709b11cd", ' // &
'"message": "test message" }'
character(len=*), parameter :: LOGGER_NAME = 'dmlogger'
character(len=*), parameter :: LOGGER_NAME = 'dmtestlogger'
character(len=*), parameter :: TEST_MESSAGE = 'test message'
integer, parameter :: TEST_ERROR = E_DUMMY
integer, parameter :: TEST_LEVEL = LVL_INFO
Expand Down

0 comments on commit df4012c

Please sign in to comment.