Revise log level for modulo messages

This commit is contained in:
Mr-Dave
2022-10-24 21:46:20 -06:00
parent db94a8939e
commit d02ae90f64

View File

@@ -1158,7 +1158,7 @@ static int motion_init(struct context *cnt)
}
/* Substream size notification*/
if ((cnt->imgs.width % 16) || (cnt->imgs.height % 16)) {
MOTION_LOG(CRT, TYPE_NETCAM, NO_ERRNO
MOTION_LOG(NTC, TYPE_NETCAM, NO_ERRNO
,_("Substream not available. Image sizes not modulo 16."));
}
@@ -1831,7 +1831,7 @@ static int mlp_retry(struct context *cnt)
MOTION_LOG(NTC, TYPE_ALL, NO_ERRNO, _("Camera has become available."));
if ((cnt->imgs.width % 8) || (cnt->imgs.height % 8)) {
MOTION_LOG(NTC, TYPE_ALL, NO_ERRNO
MOTION_LOG(CRT, TYPE_ALL, NO_ERRNO
, _("Restarting Motion.\n"
"Image width (%d) or height(%d) requested is not modulo 8.")
,cnt->imgs.width, cnt->imgs.height);
@@ -1839,7 +1839,7 @@ static int mlp_retry(struct context *cnt)
}
if ((cnt->imgs.width < 64) || (cnt->imgs.height < 64)) {
MOTION_LOG(NTC, TYPE_ALL, NO_ERRNO
MOTION_LOG(CRT, TYPE_ALL, NO_ERRNO
, _("Restarting Motion.\n"
"Motion only supports width and height greater than or equal to 64 %dx%d")
,cnt->imgs.width, cnt->imgs.height);