Hi,

This turns a warning into a debug message. It is printed if there is not as 
much working area as requested. Many callers try iteratively until a working 
area of suitable size is found. The current warnings are irritating.

It should be up to the caller to decide if this is worth a warning. Most of 
them just fall back transparently to a different method.

Regards,
Rolf


      
Index: src/target/target.c
===================================================================
--- src/target/target.c	(revision 2700)
+++ src/target/target.c	(working copy)
@@ -972,7 +972,7 @@
 
 		if (free_size < size)
 		{
-			LOG_WARNING("not enough working area available(requested %u, free %u)",
+			LOG_DEBUG("not enough working area available(requested %u, free %u)",
 				    (unsigned)(size), (unsigned)(free_size));
 			return ERROR_TARGET_RESOURCE_NOT_AVAILABLE;
 		}
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to