changeset 2814:465fd3fc7787

* tests/flash2.c (cyg_user_start): Update for minor flash API mod to call cyg_flash_set_global_printf() to set printf function.
author jlarmour
date Thu, 19 Feb 2009 00:11:07 +0000
parents 28304e4aafd7
children 3cd309d2d829
files packages/devs/flash/synth/current/ChangeLog packages/devs/flash/synth/current/tests/flash2.c
diffstat 2 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/packages/devs/flash/synth/current/ChangeLog
+++ b/packages/devs/flash/synth/current/ChangeLog
@@ -1,3 +1,9 @@
+2009-02-18  Jonathan Larmour  <jifl@eCosCentric.com>
+
+	* tests/flash2.c (cyg_user_start): Update for minor flash API
+	mod to call cyg_flash_set_global_printf() to set printf
+	function.
+
 2008-12-23  Simon Kallweit  <simon.kallweit@intefo.ch>
 
 	* src/flash_erase_block.c:
@@ -81,7 +87,7 @@ 2001-11-1  Andrew Lunn  <andrew.lunn@asc
 // ####GPLCOPYRIGHTBEGIN####                                                
 // -------------------------------------------                              
 // This file is part of eCos, the Embedded Configurable Operating System.   
-// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2009 Free Software Foundation, Inc.
 //
 // This program is free software; you can redistribute it and/or modify     
 // it under the terms of the GNU General Public License as published by     
--- a/packages/devs/flash/synth/current/tests/flash2.c
+++ b/packages/devs/flash/synth/current/tests/flash2.c
@@ -11,7 +11,7 @@ static char copyright[] =
 "// ####ECOSGPLCOPYRIGHTBEGIN####                                          "
 "// -------------------------------------------                            "
 "// This file is part of eCos, the Embedded Configurable Operating System. "
-"// Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. "
+"// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2009 Free Software Foundation, Inc. "
 "//                                                                   "
 "// eCos is free software; you can redistribute it and/or modify it under  "
 "// the terms of the GNU General Public License as published by the Free   "
@@ -89,7 +89,8 @@ void cyg_user_start(void)
     
     CYG_TEST_INIT();
   
-    ret=cyg_flash_init((cyg_flash_printf *)diag_printf);
+    cyg_flash_set_global_printf((cyg_flash_printf *)&diag_printf);
+    ret=cyg_flash_init();
   
     CYG_TEST_PASS_FAIL((ret == CYG_FLASH_ERR_OK),"flash_init");