This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Problems with printf and long long int


You have to use %lld.

%ll indicates long iong

Rick
 

-----Original Message-----
From: Yegor Yefremov [mailto:Yegor.Yefremov@Visionsystems.de] 
Sent: Friday, October 07, 2005 8:42 AM
To: ecos-discuss@sources.redhat.com
Subject: Problems with printf and long long int

Hi,

I've define long long int variable and try to print its value. In
uClinux I use %d or %ld and get the value without a problem. In eCos I
see only zero. The value can contain one digit or more it doesn't
matter.
What's the problem? How can I print the value of a long long int
variable?

Best regards,

Yegor Yefremov
--

VS Vision Systems GmbH, Industrial Image Processing Aspelohe 27A,
D-22848 Norderstedt, Germany
Mail: Yegor.Yefremov@VisionSystems.de       Tel.: +49-40-528 401-0
http://www.VisionSystems.de                 Fax.: +49-40-528 401-99
-------------------------------------------------------------------





-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]