Index: wp-includes/functions.php
===================================================================
--- wp-includes/functions.php (revision 18596)
+++ wp-includes/functions.php (working copy)
@@ -3516,8 +3516,11 @@
 
 	// Allow plugin to filter the output error trigger
 	if ( WP_DEBUG && apply_filters( 'doing_it_wrong_trigger_error', true ) ) {
+		$backtrace = debug_backtrace();
+		$called_by = sprintf( __( '(Called by %1$s line %2$s)' ), $backtrace[1]['file'], $backtrace[1]['line'] );
+		
 		$version = is_null( $version ) ? '' : sprintf( __( '(This message was added in version %s.)' ), $version );
-		trigger_error( sprintf( __( '%1$s was called <strong>incorrectly</strong>. %2$s %3$s' ), $function, $message, $version ) );
+		trigger_error( sprintf( __( '%1$s was called <strong>incorrectly</strong>. %2$s %3$s %4$s' ), $function, $message, $version, $called_by ) );
 	}
 }
 
