=== modified file 'includes/common.inc'
--- includes/common.inc	2010-09-02 16:43:00 +0000
+++ includes/common.inc	2010-09-08 02:56:03 +0000
@@ -2362,7 +2362,7 @@ function drupal_deliver_page($page_callb
     // If a delivery callback is specified, but doesn't exist as a function,
     // something is wrong, but don't print anything, since it's not known
     // what format the response needs to be in.
-    watchdog('delivery callback not found', check_plain($delivery_callback) . ': ' . check_plain($_GET['q']), NULL, WATCHDOG_ERROR);
+    watchdog('delivery callback not found', 'callback %callback not found: %q.', array('callback' => $delivery_callback, 'q' => $_GET['q']), WATCHDOG_ERROR);
   }
 }
 
@@ -2395,7 +2395,7 @@ function drupal_deliver_html_page($page_
         // Print a 404 page.
         drupal_add_http_header('Status', '404 Not Found');
 
-        watchdog('page not found', check_plain($_GET['q']), NULL, WATCHDOG_WARNING);
+        watchdog('page not found', 'page not found: @q.', array('q' => $_GET['q']), WATCHDOG_WARNING);
 
         // Keep old path for reference, and to allow forms to redirect to it.
         if (!isset($_GET['destination'])) {
@@ -2424,7 +2424,7 @@ function drupal_deliver_html_page($page_
       case MENU_ACCESS_DENIED:
         // Print a 403 page.
         drupal_add_http_header('Status', '403 Forbidden');
-        watchdog('access denied', check_plain($_GET['q']), NULL, WATCHDOG_WARNING);
+        watchdog('access denied', 'access denied: @q', array('q' => $_GET['q']), WATCHDOG_WARNING);
 
         // Keep old path for reference, and to allow forms to redirect to it.
         if (!isset($_GET['destination'])) {

