-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ticket 8406 #5
base: main
Are you sure you want to change the base?
Ticket 8406 #5
Changes from all commits
d378247
0ceb278
4e9a266
b7350f4
6cfa773
1440d0e
e25b384
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -207,10 +207,15 @@ int SumReadRequest::initialize() { | |
for (size_t i_var = 0; i_var < chunk->variables.size(); i_var++) { | ||
std::shared_ptr<ADSVariable> var = chunk->variables[i_var]; | ||
if (var->addr->is_resolved() == false) { | ||
LOG_ERR("variable name is not resolved: '%s'", | ||
var->addr->get_var_name().c_str()); | ||
std::string name = var->addr->get_var_name(); | ||
if (name !=last) { | ||
LOG_ERR("variable name is not resolved: '%s'", | ||
name.c_str()); | ||
last = var->addr->get_var_name(); | ||
} | ||
return EPICSADS_NOT_RESOLVED; | ||
} | ||
last = ""; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need to reset |
||
|
||
chunk->sum_read_request_buffer[i_var] = { | ||
var->addr->get_index_group(), var->addr->get_index_offset(), | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,10 +32,10 @@ | |
LOG_MSG_ASYN(asyn_user, ASYN_TRACE_ERROR, "ERROR", format, ##__VA_ARGS__) | ||
|
||
#define LOG_WARN_ASYN(asyn_user, format, ...) \ | ||
LOG_MSG_ASYN(asyn_user, ASYN_TRACE_WARNING, "WARNING", format, ##__VA_ARGS__) | ||
//LOG_MSG_ASYN(asyn_user, ASYN_TRACE_WARNING, "WARNING", format, ##__VA_ARGS__) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would rather keep these messages in case useful. Different case to above where repeated messages were lost. |
||
|
||
#define LOG_TRACE_ASYN(asyn_user, format, ...) \ | ||
LOG_MSG_ASYN(asyn_user, ASYN_TRACE_FLOW, "TRACE", format, ##__VA_ARGS__) | ||
//LOG_MSG_ASYN(asyn_user, ASYN_TRACE_FLOW, "TRACE", format, ##__VA_ARGS__) | ||
|
||
/* Error logging macros for use when asyn_user is not available */ | ||
#define LOG_MSG(log_level_str, format, ...) \ | ||
|
@@ -45,10 +45,10 @@ | |
LOG_MSG("ERROR", format, ##__VA_ARGS__) | ||
|
||
#define LOG_WARN(format, ...) \ | ||
LOG_MSG("WARNING", format, ##__VA_ARGS__) | ||
//LOG_MSG("WARNING", format, ##__VA_ARGS__) | ||
|
||
#define LOG_TRACE(format, ...) \ | ||
LOG_MSG("TRACE", format, ##__VA_ARGS__) | ||
//LOG_MSG("TRACE", format, ##__VA_ARGS__) | ||
|
||
/* EPICS ADS specific return codes */ | ||
#define EPICSADS_BASE 1000 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logic not quite right here. Need two 'if' statements to return
status
regardless.Also applies to further 'if' statements, for
write
andsumread
.