diff options
author | Yao Chen <yaochen@google.com> | 2019-03-26 14:02:11 -0700 |
---|---|---|
committer | Yao Chen <yaochen@google.com> | 2019-03-26 15:50:47 -0700 |
commit | 49d7dd7aaa5eefe150e042685573a05f425d0c39 (patch) | |
tree | 3a1dd4bd74e7afa4fdaa1c9810d7dae24959ff24 /tools/stats_log_api_gen/main.cpp | |
parent | 44dbdbc34833a541977af8af6e89b8171dded957 (diff) |
Report the last atom tag, uid in the case of log loss.
Test: manually tested and existing statsd_test
Change-Id: I8cea9e09c4c069ec234fc0d989d550886605449b
Diffstat (limited to 'tools/stats_log_api_gen/main.cpp')
-rw-r--r-- | tools/stats_log_api_gen/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/stats_log_api_gen/main.cpp b/tools/stats_log_api_gen/main.cpp index daee6d6be048..a5b56a42bfbe 100644 --- a/tools/stats_log_api_gen/main.cpp +++ b/tools/stats_log_api_gen/main.cpp @@ -512,7 +512,7 @@ static int write_stats_log_cpp(FILE *out, const Atoms &atoms, const AtomDecl &at fprintf(out, " std::this_thread::sleep_for(std::chrono::milliseconds(10));\n"); fprintf(out, " }\n"); fprintf(out, " if (ret < 0) {\n"); - fprintf(out, " note_log_drop(ret);\n"); + fprintf(out, " note_log_drop(ret, code);\n"); fprintf(out, " }\n"); fprintf(out, " return ret;\n"); fprintf(out, "}\n"); @@ -620,7 +620,7 @@ static int write_stats_log_cpp(FILE *out, const Atoms &atoms, const AtomDecl &at fprintf(out, " std::this_thread::sleep_for(std::chrono::milliseconds(10));\n"); fprintf(out, " }\n"); fprintf(out, " if (ret < 0) {\n"); - fprintf(out, " note_log_drop(ret);\n"); + fprintf(out, " note_log_drop(ret, code);\n"); fprintf(out, " }\n"); fprintf(out, " return ret;\n\n"); fprintf(out, "}\n"); |