Convert lcd.write to serial.write

I have a piece of code to show me on a 16.2 display the output of an vag navi (vw,audi,skoda,seat).
I don`t want to use the lcd, i just want to see the values in serial terminal.
The declarations are

volatile uint8_t adr=0;
volatile uint64_t msg1=0;
volatile uint64_t msg2=0;
volatile uint8_t cksum=0;
volatile uint8_t msgbit=0;
volatile uint8_t newmsg1=0;
volatile uint8_t newmsg2=0;
volatile uint8_t adrok=0;
volatile uint8_t cksumok=0;
volatile uint8_t tmp_cksum=0;

And the lcd output is called like this:

lcd.write(0xFF^((msg2>>i) & 0xFF));

I tried like this but no luck.

      unsigned int q = 0xFF^((msg2>>i) & 0xFF);
      Serial.print(q);// or serial.write(q); - still no result.
//  lcd.write(0xFF^((msg2>>i) & 0xFF));

Can anyone guide me?:frowning:

How about something simple like

Serial.print(msg2);
sketch_apr06b.ino: In function 'void loop()':
sketch_apr06b:140: error: call of overloaded 'write(volatile uint64_t&)' is ambiguous
C:\Users\GvS\Desktop\arduino-1.0.5-r2\hardware\arduino\cores\arduino/HardwareSerial.h:62: note: candidates are: virtual size_t HardwareSerial::write(uint8_t)
C:\Users\GvS\Desktop\arduino-1.0.5-r2\hardware\arduino\cores\arduino/HardwareSerial.h:63: note:                 size_t HardwareSerial::write(long unsigned int)
C:\Users\GvS\Desktop\arduino-1.0.5-r2\hardware\arduino\cores\arduino/HardwareSerial.h:64: note:                 size_t HardwareSerial::write(long int)
C:\Users\GvS\Desktop\arduino-1.0.5-r2\hardware\arduino\cores\arduino/HardwareSerial.h:65: note:                 size_t HardwareSerial::write(unsigned int)
C:\Users\GvS\Desktop\arduino-1.0.5-r2\hardware\arduino\cores\arduino/HardwareSerial.h:66: note:                 size_t HardwareSerial::write(int)
C:\Users\GvS\Desktop\arduino-1.0.5-r2\hardware\arduino\cores\arduino/Print.h:49: note:                 size_t Print::write(const char*) <near match>
sketch_apr06b:145: error: call of overloaded 'write(volatile uint64_t&)' is ambiguous
C:\Users\GvS\Desktop\arduino-1.0.5-r2\hardware\arduino\cores\arduino/HardwareSerial.h:62: note: candidates are: virtual size_t HardwareSerial::write(uint8_t)
C:\Users\GvS\Desktop\arduino-1.0.5-r2\hardware\arduino\cores\arduino/HardwareSerial.h:63: note:                 size_t HardwareSerial::write(long unsigned int)
C:\Users\GvS\Desktop\arduino-1.0.5-r2\hardware\arduino\cores\arduino/HardwareSerial.h:64: note:                 size_t HardwareSerial::write(long int)
C:\Users\GvS\Desktop\arduino-1.0.5-r2\hardware\arduino\cores\arduino/HardwareSerial.h:65: note:                 size_t HardwareSerial::write(unsigned int)
C:\Users\GvS\Desktop\arduino-1.0.5-r2\hardware\arduino\cores\arduino/HardwareSerial.h:66: note:                 size_t HardwareSerial::write(int)
C:\Users\GvS\Desktop\arduino-1.0.5-r2\hardware\arduino\cores\arduino/Print.h:49: note:                 size_t Print::write(const char*) <near match>

[sketch_apr06b:145: error: call of overloaded 'write(volatile uint64_t&)' is ambiguous

Perhaps it's time to show all of your code. The Arduino does not provide a lot of support for 64 bit ints.