Revision 89cdb6af hw/spitz.c

b/hw/spitz.c
22 22
#include "audio/audio.h"
23 23
#include "boards.h"
24 24

  
25
#define spitz_printf(format, ...)	\
26
    fprintf(stderr, "%s: " format, __FUNCTION__, ##__VA_ARGS__)
27 25
#undef REG_FMT
28 26
#if TARGET_PHYS_ADDR_BITS == 32
29 27
#define REG_FMT			"0x%02x"
......
90 88
        return ecc_digest(&s->ecc, nand_getio(s->nand));
91 89

  
92 90
    default:
93
        spitz_printf("Bad register offset " REG_FMT "\n", addr);
91
        zaurus_printf("Bad register offset " REG_FMT "\n", addr);
94 92
    }
95 93
    return 0;
96 94
}
......
134 132
        break;
135 133

  
136 134
    default:
137
        spitz_printf("Bad register offset " REG_FMT "\n", addr);
135
        zaurus_printf("Bad register offset " REG_FMT "\n", addr);
138 136
    }
139 137
}
140 138

  
......
537 535
static void spitz_bl_update(struct pxa2xx_state_s *s)
538 536
{
539 537
    if (bl_power && bl_intensity)
540
        spitz_printf("LCD Backlight now at %i/63\n", bl_intensity);
538
        zaurus_printf("LCD Backlight now at %i/63\n", bl_intensity);
541 539
    else
542
        spitz_printf("LCD Backlight now off\n");
540
        zaurus_printf("LCD Backlight now off\n");
543 541
}
544 542

  
545 543
static inline void spitz_bl_bit5(void *opaque, int line, int level)
......
570 568
    switch (addr) {
571 569
    case LCDTG_RESCTL:
572 570
        if (value)
573
            spitz_printf("LCD in QVGA mode\n");
571
            zaurus_printf("LCD in QVGA mode\n");
574 572
        else
575
            spitz_printf("LCD in VGA mode\n");
573
            zaurus_printf("LCD in VGA mode\n");
576 574
        break;
577 575

  
578 576
    case LCDTG_DUTYCTRL:
......
780 778
{
781 779
    switch (line) {
782 780
    case 0:
783
        spitz_printf("Charging %s.\n", level ? "off" : "on");
781
        zaurus_printf("Charging %s.\n", level ? "off" : "on");
784 782
        break;
785 783
    case 1:
786
        spitz_printf("Discharging %s.\n", level ? "on" : "off");
784
        zaurus_printf("Discharging %s.\n", level ? "on" : "off");
787 785
        break;
788 786
    case 2:
789
        spitz_printf("Green LED %s.\n", level ? "on" : "off");
787
        zaurus_printf("Green LED %s.\n", level ? "on" : "off");
790 788
        break;
791 789
    case 3:
792
        spitz_printf("Orange LED %s.\n", level ? "on" : "off");
790
        zaurus_printf("Orange LED %s.\n", level ? "on" : "off");
793 791
        break;
794 792
    case 4:
795 793
        spitz_bl_bit5(opaque, line, level);

Also available in: Unified diff