]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
yes question
authorhadaq <hadaq>
Tue, 8 Feb 2011 16:13:46 +0000 (16:13 +0000)
committerhadaq <hadaq>
Tue, 8 Feb 2011 16:13:46 +0000 (16:13 +0000)
libtrbnet/trbflash.c

index 9874deed784b22d359f8da087821aa7421d58465..59174521d4528e2e4295e028c1707966e9791f26 100644 (file)
@@ -96,7 +96,7 @@ static const char FlashTypeStr[16][32] = {
 
 static FlashType flashType = FLASH_INVALID;
 static uint32_t manId = 0;
-static const char trbflash_version[] = "$Revision: 2.27 $";
+static const char trbflash_version[] = "$Revision: 2.28 $";
 
 static uint32_t mdcFlashSelect = 1;
 
@@ -625,13 +625,13 @@ static int programImageBuffer(uint16_t trb_address,
     char c;
     if ((flashType == FLASH_MDC_OEP_V2) || (flashType == FLASH_MDC_OEP_V3)) {
       if (mdcFlashSelect == 0) {
-        fprintf(stdout,
+        fprintf(stderr,
                 "You decided to reprogram the FlashRom(s) #0 of "
                 "MDC_OEP, the so called 'GoldenImage'. "
                 "Do you really know what you're about to do [N,y]: ");
       }
     } else {
-      fprintf(stdout,
+      fprintf(stderr,
               "You decided to reprogram the FlashRom(s) of "
               "%s, are you sure [N,y]: ", FlashTypeStr[flashType]);
     }
@@ -975,7 +975,7 @@ static int prepareImageBuffer()
   /* Overwrite Header with 0xff */
   end = 0;
   for (i = 0; i < 2 * PAGE_SIZE; i++) {
-    if (strncmp((char *)(imageBuffer + i), "Bitstream CRC: 0x", 17) == 0) {
+    if (memcmp(imageBuffer + i, "Bitstream CRC: 0x", 17) == 0) {
       end = i + 22;
       break;
     }