altoslib: Remove some old debug printfs for self flashing
authorKeith Packard <keithp@keithp.com>
Thu, 19 Dec 2013 06:00:13 +0000 (22:00 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 19 Dec 2013 06:00:13 +0000 (22:00 -0800)
These aren't necessary anymore and just slow down flashing boards.

Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosHexfile.java
altoslib/AltosSelfFlash.java

index 02b083269fd06eb8b76494e90c52405c8a637018..717c1c5d813778ba73ed6d5755527c83d86f6f53 100644 (file)
@@ -319,8 +319,6 @@ public class AltosHexfile {
                        case 0xfe:
                                String name = make_string(record.data, 0, record.data.length);
                                addr = extended_addr + record.address;
                        case 0xfe:
                                String name = make_string(record.data, 0, record.data.length);
                                addr = extended_addr + record.address;
-                               if (name.startsWith("ao_romconfig"))
-                                       System.out.printf ("%08x: %s\n", addr, name);
                                AltosHexsym s = new AltosHexsym(name, addr);
                                symlist.add(s);
                                break;
                                AltosHexsym s = new AltosHexsym(name, addr);
                                symlist.add(s);
                                break;
index 327a90bd645beef4f110228c026c8a9c6a62d58d..3bf7ce41f3c689a87a9f382770b877c7e20293d8 100644 (file)
@@ -58,7 +58,6 @@ public class AltosSelfFlash extends AltosProgrammer {
                
        void write_memory(long addr, byte[] data, int start, int len) {
                int b;
                
        void write_memory(long addr, byte[] data, int start, int len) {
                int b;
-               System.out.printf ("write_memory %x %d\n", addr, len);
                link.printf("W %x\n", addr);
                link.flush_output();
                for (b = 0; b < len; b++)
                link.printf("W %x\n", addr);
                link.flush_output();
                for (b = 0; b < len; b++)
@@ -68,7 +67,6 @@ public class AltosSelfFlash extends AltosProgrammer {
        }
 
        void reboot() {
        }
 
        void reboot() {
-               System.out.printf("reboot\n");
                link.printf("a\n");
                link.flush_output();
        }
                link.printf("a\n");
                link.flush_output();
        }
@@ -115,7 +113,6 @@ public class AltosSelfFlash extends AltosProgrammer {
                                action(image.data.length - remain, image.data.length);
                        }
                        if (!aborted) {
                                action(image.data.length - remain, image.data.length);
                        }
                        if (!aborted) {
-                               System.out.printf ("done\n");
                                action("done", 100);
                        }
                        close();
                                action("done", 100);
                        }
                        close();
@@ -144,7 +141,6 @@ public class AltosSelfFlash extends AltosProgrammer {
        }
 
        private AltosHexfile get_rom() throws InterruptedException {
        }
 
        private AltosHexfile get_rom() throws InterruptedException {
-               System.out.printf("get rom\n");
                try {
                        int base = AltosRomconfig.fetch_base(image);
                        int bounds = AltosRomconfig.fetch_bounds(image);
                try {
                        int base = AltosRomconfig.fetch_base(image);
                        int bounds = AltosRomconfig.fetch_bounds(image);
@@ -153,7 +149,6 @@ public class AltosSelfFlash extends AltosProgrammer {
                        hexfile.add_symbols(image);
                        return hexfile;
                } catch (AltosNoSymbol none) {
                        hexfile.add_symbols(image);
                        return hexfile;
                } catch (AltosNoSymbol none) {
-                       System.out.printf("no symbol %s\n", none.getMessage());
                        return null;
                } catch (IOException ie) {
                        return null;
                        return null;
                } catch (IOException ie) {
                        return null;
@@ -163,7 +158,6 @@ public class AltosSelfFlash extends AltosProgrammer {
 
        public boolean check_rom_config() throws InterruptedException {
                if (link == null) {
 
        public boolean check_rom_config() throws InterruptedException {
                if (link == null) {
-                       System.out.printf ("no link\n");
                        return true;
                }
                if (rom_config == null) {
                        return true;
                }
                if (rom_config == null) {
@@ -179,7 +173,6 @@ public class AltosSelfFlash extends AltosProgrammer {
        }
 
        public AltosRomconfig romconfig() throws InterruptedException {
        }
 
        public AltosRomconfig romconfig() throws InterruptedException {
-               System.out.printf("fetch romconfig\n");
                if (!check_rom_config())
                        return null;
                return rom_config;
                if (!check_rom_config())
                        return null;
                return rom_config;
@@ -192,6 +185,5 @@ public class AltosSelfFlash extends AltosProgrammer {
                this.listener = listener;
                input = new FileInputStream(file);
                image = new AltosHexfile(input);
                this.listener = listener;
                input = new FileInputStream(file);
                image = new AltosHexfile(input);
-               System.out.printf ("AltosSelfFlash %x\n", image.address);
        }
 }
\ No newline at end of file
        }
 }
\ No newline at end of file