< prev index next >

src/share/back/log_messages.h

Print this page
rev 11542 : 8049226: com/sun/jdi/OptionTest.java test times out again
Summary: Don't call jni_FatalError if transport initialization fails
Reviewed-by: sspitsyn, sla


  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 #ifndef JDWP_LOG_MESSAGES_H
  27 #define JDWP_LOG_MESSAGES_H
  28 
  29 /* LOG: Must be called like:  LOG_category(("anything")) or LOG_category((format,args)) */
  30 
  31 void setup_logging(const char *, unsigned);
  32 void finish_logging(int);
  33 
  34 #define LOG_NULL ((void)0)
  35 
  36 /* Use THIS_FILE when it is available. */
  37 #ifndef THIS_FILE
  38     #define THIS_FILE __FILE__
  39 #endif
  40 
  41 #ifdef JDWP_LOGGING
  42 
  43     #define _LOG(flavor,args) \
  44                 (log_message_begin(flavor,THIS_FILE,__LINE__), \
  45                  log_message_end args)
  46 
  47     #define LOG_TEST(flag)  (gdata->log_flags & (flag))
  48 
  49     #define LOG_JVM(args)   \
  50         (LOG_TEST(JDWP_LOG_JVM)  ?_LOG("JVM",  args):LOG_NULL)
  51     #define LOG_JNI(args)   \
  52         (LOG_TEST(JDWP_LOG_JNI)  ?_LOG("JNI",  args):LOG_NULL)




  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 #ifndef JDWP_LOG_MESSAGES_H
  27 #define JDWP_LOG_MESSAGES_H
  28 
  29 /* LOG: Must be called like:  LOG_category(("anything")) or LOG_category((format,args)) */
  30 
  31 void setup_logging(const char *, unsigned);
  32 void finish_logging();
  33 
  34 #define LOG_NULL ((void)0)
  35 
  36 /* Use THIS_FILE when it is available. */
  37 #ifndef THIS_FILE
  38     #define THIS_FILE __FILE__
  39 #endif
  40 
  41 #ifdef JDWP_LOGGING
  42 
  43     #define _LOG(flavor,args) \
  44                 (log_message_begin(flavor,THIS_FILE,__LINE__), \
  45                  log_message_end args)
  46 
  47     #define LOG_TEST(flag)  (gdata->log_flags & (flag))
  48 
  49     #define LOG_JVM(args)   \
  50         (LOG_TEST(JDWP_LOG_JVM)  ?_LOG("JVM",  args):LOG_NULL)
  51     #define LOG_JNI(args)   \
  52         (LOG_TEST(JDWP_LOG_JNI)  ?_LOG("JNI",  args):LOG_NULL)


< prev index next >