X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvcl%2Fvcl_debug.h;h=8ee716a3c8238560c82cee6eca1805f4768886f4;hb=b4e5e50fe;hp=7b284166503b8d7b658482a7e10558ab818a8a5f;hpb=0e88e851e058f4fb7cc690dbbdb19216ab360d1c;p=vpp.git diff --git a/src/vcl/vcl_debug.h b/src/vcl/vcl_debug.h index 7b284166503..8ee716a3c82 100644 --- a/src/vcl/vcl_debug.h +++ b/src/vcl/vcl_debug.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018 Cisco and/or its affiliates. + * Copyright (c) 2018-2019 Cisco and/or its affiliates. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this * You may obtain a copy of the License at: @@ -23,7 +23,19 @@ #define VDBG(_lvl, _fmt, _args...) \ if (VCL_DBG_ON && vcm->debug > _lvl) \ - clib_warning ("vcl: " _fmt, __vcl_worker_index, ##_args) + clib_warning ("vcl<%d:%d>: " _fmt, \ + vcm->workers[__vcl_worker_index].current_pid, \ + __vcl_worker_index, ##_args) + +#define VWRN(_fmt, _args...) \ + clib_warning ("vcl<%d:%d>: " _fmt, \ + vcm->workers[__vcl_worker_index].current_pid, \ + __vcl_worker_index, ##_args) + +#define VERR(_fmt, _args...) \ + clib_warning ("vcl<%d:%d>: ERROR " _fmt, \ + vcm->workers[__vcl_worker_index].current_pid, \ + __vcl_worker_index, ##_args) #define foreach_vcl_dbg_evt \ _(INIT, "vcl init track") \